JavaScript Array Destructing Last Element

const [lastone] = myArray.slice(-1);
HimansaE