Comment on iOS 8 length bug breaks jQuery and Underscore object iterationparentComments−wging11yWhy not instead do _.map(_.values(thingsGroupedById), function(thing) { // operate on thing } Then there's no need to do the property access yourself.Chaining makes this even nicer: _(thingsGroupedById).values().map(function(thing) { }−dandelany11yDepends on what //... is. You might need the key for something, and you can get the value from the key but not vice versa.
Comments
Why not instead do
Then there's no need to do the property access yourself.Chaining makes this even nicer:
Depends on what //... is. You might need the key for something, and you can get the value from the key but not vice versa.