Skip to content

Glossary: Data Structures and Algorithms in JavaScript

Arrow function

Also written: arrow functions

A short, nameless function written like `(a, b) => a.total - b.total`. It is often passed straight to `sort` or `toSorted` as the compare function.

Where the book teaches it

Related terms

Comparator