7 ms·
Underscore.js and Prototype.js both define this function. You can include this and use map. Underscore delegates it to ECMAScript 5's native map if available.
by subbu 15y ago
Underscore.js and Prototype.js both define this function. You can include this and use map. Underscore delegates it to ECMAScript 5's native map if available.
- Groxx 15y agoIt's definitely 'out there', and you can always just copy-paste to get the same code and delegation[1], but the lack of default availability is a pretty damaging blow. It shouldn't be, but the Javascript world isn't exactly a pantheon of high-quality code. [1]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map https://developer.mozilla.org/en/JavaScript/Reference/Global...