spread operator - 2

by Pritesh Patel

JavaScript

const arr = [1, 2, 3, 4, 5]
const [first, ...tail] = arr