You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm afraid this is on purpose -- to make the function compliant with ECMAScript 5's forEach, which also doesn't return a value. I've added a note to the change log:
I wonder if there could be some other function that WOULD still return the object... or is there some other nice way of iterating a collection between a _.chain() and .value()..? _.map() doesn't seem right if I'm not actually mapping the items into something new.
It looks like _.each() doesn't return the object any more. The return statement was left off in commit 2d06e1d.
The text was updated successfully, but these errors were encountered: