Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Created November 19, 2019 09:59
Show Gist options
  • Save myogeshchavan97/2202e1d6dc840ccb305cf77f71e28770 to your computer and use it in GitHub Desktop.
Save myogeshchavan97/2202e1d6dc840ccb305cf77f71e28770 to your computer and use it in GitHub Desktop.
Array Spread Operator
const numbers = [10, 20, 30, 40, 50];
const [first, ...rest] = numbers;
console.log(first);
console.log(rest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment