Javascript
Destructuring arrays
TLDR
Nicer syntax for creating new variables from data extracted from an array.
Useful if you have known values at consistent positions in an array.
Standard usage
const myArray = ["a", "b", "c"];
Without destructuring
const x = myArray[0];
const y = myArray[1];
With destructuring
const [x, y] = myArray; // Concise
console.log(x) // "a"
console.log(y) // "b"