why this deconstructuring return array's length?

25 Views Asked by At

I can't find description about this code in JS...

    let arr = [3, 1, 5, 1, 2, 1, 1];

    let { length } = arr;

    console.log(length);

why this code work like arr.length and how should I call it?

0

There are 0 best solutions below