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.
Glossary: Data Structures and Algorithms in JavaScript
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.