Array.prototype.mapOn method

Ahmad Bamieh ahmadbamieh at
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.

Ahmad Bamieh,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list