Glossary: Software Design Patterns in JavaScript
Callback
Also written: callbacks
A function you hand to another function so it can call it later. The compare function passed to toSorted is a callback and a strategy.
Glossary: Software Design Patterns in JavaScript
Also written: callbacks
A function you hand to another function so it can call it later. The compare function passed to toSorted is a callback and a strategy.