Skip to content

Instantly share code, notes, and snippets.

View AlexDudar's full-sized avatar
:electron:

Alex Dudar AlexDudar

:electron:
  • Netherlands
View GitHub Profile
{
// ...
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,json,css}": [
"prettier --write",
@AlexDudar
AlexDudar / destructuring.js
Created January 19, 2017 20:59 — 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];
@AlexDudar
AlexDudar / 0_reuse_code.js
Created January 16, 2017 20:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console