|
|
|
|
|
by paulmcpazzi
4512 days 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) 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);
|
|