manuelbarzi manuelbarzi at
Fri Feb 7 11:48:50 UTC 2020

just a proposal to provide this functionality into array, allowing to add /
remove items in a toggling mechanism shortcut, avoiding the need to do
traversing to locate the indexes and remove them next (i.e. by means of a
polyfill or any other approach).

[1, 2, 3, 2, 1].toggle(1) // mutates the original array removing 1,
resulting in [2, 3, 2]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list