Sorting sans Loop

Sorting sans Loop

In the JavaScript world, Array.prototype.map is one of the most commonly used higher-order functions. Do you also know that map combined with other Array's functions can be leveraged to construct a sequence? In fact, it is entirely possible to implement a sorting algorithm or to perform a search operation with just the higher-order functions of the built-in Array object, without using explicit for/while statements. Learn more about it from this talk!

0284b8950e0f4a57bcc092d4dbb98d97?s=128

Ariya Hidayat

June 08, 2016
Tweet