Skip to content

Instantly share code, notes, and snippets.

@halan
Last active February 25, 2017 01:12
Show Gist options
  • Save halan/abe71c928c64fe5bce38c606bbb39d4f to your computer and use it in GitHub Desktop.
Save halan/abe71c928c64fe5bce38c606bbb39d4f to your computer and use it in GitHub Desktop.
const add = (a, b) => a + b;
add.length // 2
const add10 = add.bind(this, 10);
add10.length // 1
console.log(add10(5)); // 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment