Skip to content

Instantly share code, notes, and snippets.

View mahfuzk's full-sized avatar

Mahfuz Kabir mahfuzk

View GitHub Profile
### Keybase proof
I hereby claim:
* I am mahfuzk on github.
* I am mahfuzk (https://keybase.io/mahfuzk) on keybase.
* I have a public key ASBz36Zpw1UN5prqCXGACpI8Av2QUi19sczaKg690EeYIwo
To claim this, I am signing this object:
@mahfuzk
mahfuzk / destructuring.js
Created May 7, 2018 03:24 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];