Skip to content

Instantly share code, notes, and snippets.

@sivaraj-v
Created March 22, 2018 09:06
Show Gist options
  • Save sivaraj-v/612b877630b9687a6ea912edebe4a722 to your computer and use it in GitHub Desktop.
Save sivaraj-v/612b877630b9687a6ea912edebe4a722 to your computer and use it in GitHub Desktop.
ES6 javascript file
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
console.log(x); // 1
console.log(y); // 2
console.log(z); // { a: 3, b: 4 }
[5, 6].map(n => console.log(n));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment