Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Last active July 3, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnMurray/6ebceb739f5de4417441017785bccd84 to your computer and use it in GitHub Desktop.
Save JohnMurray/6ebceb739f5de4417441017785bccd84 to your computer and use it in GitHub Desktop.
const addOne = (x) => x + 1;
}
addOne(5);
// returns 6
// use lambda as a value
[1, 2, 3, 4, 5].map(addOne)
// returns [2, 3, 4, 5, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment