Skip to content

Glossary: Software Design Patterns in JavaScript

toSorted

An array method that returns a new sorted array using a compare function you pass in. The compare function is a strategy.

Where the book teaches it

Related terms

StrategyCallback