Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Created November 19, 2019 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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