3 ms·
That's not what a callback is. A callback is just a function passed to an outer function that the outer function may call. Even MDN uses the term callback to d
by zbentley 7y ago
That's not what a callback is. A callback is just a function passed to an outer function that the outer function may call.
Even MDN uses the term callback to describe e.g. the argument to 'map': https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
In contrast, Lodash goes out of its way not to use the term "callback", presumably to avoid confusion since it's a place where many functions-that-take-a-function-argument do not call the provided function, e.g. https://lodash.com/docs/#curry https://lodash.com/docs/#curry