destructure array javascript

JavaScript
var [first, second, ...rest] = ["Mercury", "Earth", ...planets, "Saturn"];
Source

Also in JavaScript: