idea: Array.prototype.remove

#!/JoePea joe at
Mon Feb 4 05:56:10 UTC 2019

I sometimes find myself doing things like

this.children.splice(this.children.indexOf(child), 1)

but it seems that it will iterate the array twice. Maybe a new method can
be introduced so engines can optimize it:

// or
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list