guest271314 (2019-03-22T17:32:10.000Z)
If gather the expected result correctly object destructuring can be used

    const {0: a, 1: b} = {0: a, 1: b, length: 2}

On Wed, Mar 20, 2019 at 12:59 AM Sultan <thysultan at gmail.com> wrote:

> Afford array destructuring to Array-like objects.
>
> const [a, b] = {0: a, 1: b, length: 2}
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190322/1edd655f/attachment.html>
guest271314 at gmail.com (2019-03-22T17:36:34.697Z)
If gather the expected result correctly object destructuring can be used

    const {0: a, 1: b} = {0: "a", 1: "b", length: 2}

Alternatively, using Object.values() to get the values of the object as an Array

    const [a, b] = Object.values({0: "a", 1: "b", length: 2})
guest271314 at gmail.com (2019-03-22T17:33:26.275Z)
If gather the expected result correctly object destructuring can be used

    const {0: a, 1: b} = {0: "a", 1: "b", length: 2}