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?
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?