Array.prototype.mapOn method

Ahmad Bamieh ahmadbamieh at gmail.com
Fri Oct 27 18:19:22 UTC 2017


I found myself using this type of conditionals a lot so i thought it would
be a nice addition to the native array arsenal (+1 for getting rid of the
if statements), but after reading your comments i believe you are correct.
It might be better for such utilities to belong in a small wrapper or part
of a utility library like lodash.


Cheers!
Ahmad Bamieh,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171027/b44e0b5c/attachment.html>


More information about the es-discuss mailing list