Skip to content

Instantly share code, notes, and snippets.

View martinms-usc's full-sized avatar

Michael Martin martinms-usc

  • cavrn.us
  • Venice, CA
View GitHub Profile
@martinms-usc
martinms-usc / destructuring.js
Last active January 21, 2016 05:17 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring.
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => {
return [1, 2, 3];