27 ms·
Sure, ok. I can buy that this is not actually completely trivial, and that it's worth bringing code to solve this problem in from some other source. Still, it'
by burke 6y ago
Sure, ok. I can buy that this is not actually completely trivial, and that it's worth bringing code to solve this problem in from some other source.
Still, it's a shame that the specifics of the way the JavaScript ecosystem has evolved mean that it's commonplace to bring in a <10 line dependency to mitigate an extremely core lack of functionality, rather than have a first-party—or be able to sensibly import a third-party—standard library. I can't think of any other language ecosystem where this is normal.
- hn_throwaway_99 6y agoAgain, did you even read the package? This is part of the JS standard, and has been for years. This is basically just a polyfill for people that need to support very (very) old browsers.