4 ms·
I don't like using underscore or lodash for methods that are parts of the EcmaScript specifications. I prefer using native methods (i.e. `forEach`, `map`, etc..
by paulmcpazzi 13y ago
I don't like using underscore or lodash for methods that are parts of the EcmaScript specifications. I prefer using native methods (i.e. `forEach`, `map`, etc..) and including a JS shim (like https://github.com/es-shims/es5-shim https://github.com/es-shims/es5-shim) to monkey-patch legacy browsers.
And I know that these are just examples, but what is the point of writing:
_.each(someArray, function(someThing) {
doSomeWorkOn(someThing);
})
when you can simply write:
_.each(someArray, doSomeWorkOn);
- joelhooks 13y agohey, good catch, I like it :>