Destructuring for Array-like objects

Sultan thysultan at gmail.com
Wed Mar 20 00:59:01 UTC 2019


Afford array destructuring to Array-like objects.

const [a, b] = {0: a, 1: b, length: 2}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190320/6fed78a4/attachment.html>


More information about the es-discuss mailing list