News for hackers. Stuff that matters.
Re:Lodash 4.0.0 is out by ksherlock on Tuesday January 12, 2016 @09:15PM (#10891914)
underscore.each has an optional 3rd parameter (context). lodash.each does not. If you depend on that 3rd parameter, you will be in a world of pain if you drop-in lodash. In fact you'd be better off if there was no alias because you would catch the problem sooner and have to think about the API differences when fixing it.
Re:Lodash 4.0.0 is out by 9point6 on Wednesday January 13, 2016 @08:38AM (#10894131)
To be fair, that context parameter has only just been removed as part of 4.0.0. Instead they recommend you change your code to be of the form:

    _.each(collection, _.bind(function, context))
Which actually seems a lot more correct than some arbitrary context parameter
Re:Lodash 4.0.0 is out by vkjv on Wednesday January 13, 2016 @09:49AM (#10894628)
How is it arbitrary? It's part of the ES spec.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

I'm honestly curious why this is being removed?

Re:Lodash 4.0.0 is out by 9point6 on Friday January 15, 2016 @09:26AM (#10909458)
Ah, I actually didn't realise this was the case, I've always used `.bind(this)` for this kind of thing.