jashkenas/underscore — pull request #1708 by megawac (2014-06-27 00:23:34+00:00)
Title: Map (major) optimization : each boiler

Was playing with this pattern a couple weeks ago and look forward to hearing thoughts from other contributors. I've applied this pattern to some of the [other methods in this branch](https://github.com/megawac/underscore/compare/funhouse) + some thoughts from @jdalton (see comments at the bottom for the relevant jsperf post changes for other functions ).

Figured I would open the conversation as its one of the most used functions in the lib and optimizations here pay dividends. Relevant jsperf below

http://jsperf.com/pr-1689/9