© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
David Fekke
I am a reformed .NET developer turned iOS, Android and Node.js developer. I also am an IoT hobbyist.
sort(), map() and reduce() are all examples of higher order functions. They all take a function or lambda as a parameter
const a = [3,7,1,2,4,8]; const b = a.sort((f, n) => f < n); console.log(b); > [ 8, 7, 4, 3, 2, 1 ]