Functional programming, as the name implies, is about functions. While functions are part of just about every programming paradigm, including JavaScript, a functional programmer has unique ...
var a, async = function(f) { setTimeout(function() { var r = 'step 2'; f(r); }, 1); }, myFunc = function() { a = 'step 1'; async(function(r) { a = r; // should reset ...
‘Higher-order functions’ is a fancy term for functions that take other functions as arguments or that return functions. Very powerful! Last week, I casually dropped the term “higher-order function” ...