wzhouwzhou / one-line-wonders

OneLineWondersCode | 1000+ Commits | 279/300 One Liners | 200+ Forks | Actively maintained open-source collection of "one-line" programs performing various tasks in different languages
https://hacktoberfest2018.suya.moe
GNU General Public License v3.0
96 stars 192 forks source link

feat(js): honorary map array fn #457

Closed Vetlix closed 3 years ago

Vetlix commented 3 years ago

Please describe your program and how to run it.

This function maps an array similar to Array#map(), but a lot faster and not spec-compliant. The first argument is your array, and the second argument is the callback. The arguments passed to the callback are the current item, the index of the current item, and the original array.


What Programming Language?

JavaScript