Arrow Functions

An arrow function is JavaScript's lambda, written (a, b) => a + b, almost exactly like C#. One parameter needs no parentheses, a body in braces needs a return, and an object returned on its own needs parentheses around it.

Updated

Cheat sheet: Arrow Functions
Category
JavaScript
Level
Apprentice
Tags
Arrow Function, Callback Function, JavaScript