arrowfunction
nounUK /ˈærəʊ ˈfʌŋkʃən/
US /ˈæroʊ ˈfʌŋkʃən/
A short way to write a function using a little arrow.
She wrote an arrow function to add two numbers together.
RELATED WORDS
OTHER MEANINGS
2. A compact function syntax in programming that uses => instead of the word function.
The arrow function keeps the code short and easy to read.
3. A function that does not bind its own this value.
Inside the arrow function, this refers to the outer scope.
4. A quick one-line function often passed to methods like map or filter.
He passed an arrow function to map to double each number.