Lists of JavaScript methods which you can use natively
1–10 of 162 posts
Re: Lists of JavaScript methods which you can use natively
#2If you're going to use any of the suggestions, check MDN or CanIUse first.
Re: Lists of JavaScript methods which you can use natively
#3Re: Lists of JavaScript methods which you can use natively
#4Re: Lists of JavaScript methods which you can use natively
#5Instead of searching for the compatibility of each individual function I would much rather just use a custom build of Lodash with the collection of functions I need (which can even be handled by your build process now and some tree shaking). And I get a lot of utility functions with it too that I use a lot like Throttle and Debounce.
Re: Lists of JavaScript methods which you can use natively
#6The array could be null/undefined, in which case the _.filter just works fine, but Array.protoype.filter does not.
I hate to riddle my code with null checks I actually do not care about.
Re: Lists of JavaScript methods which you can use natively
#7The good thing is, at some point in the future you can just drop the shim and everything keeps working.
Lodash does has a lot of additional nice utility functions though.