Destructuring with the Spread Operator
destructuring in Javascript using spread operator, and it's comparison with destructuring using the rest parameter
Let’s create an array that contains the last four characters of another array:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.