News for hackers. Stuff that matters.
Re:Stop writing For loops. Start using underscore. by paulmcpazzi on Thursday February 06, 2014 @06:06AM (#7189753)
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);
Re:Stop writing For loops. Start using underscore. by joelhooks on Thursday February 06, 2014 @01:29PM (#7192016)
hey, good catch, I like it :>