On Sun, Jul 23, 2017 at 6:53 AM, Naveen Chawla <naveen.c...@gmail.com> wrote: > Does anybody have any opinion on a new Array.prototype.each method that does > the same as forEach but returns the array, thereby allowing chaining with > sort, map, filter etc., while also preserving backwards compatibility?
In general, functions returning undefined are *often* safe to switch to returning a more useful value; this is one of the recommended patterns for upgrading DOM code that uses callbacks to using promises instead. We should pursue that first. ^_^ ~TJ _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss