Higher-Order Function
A function that returns a function and or accepts a function as an input parameter.
const fn = () => 'returning function value.';
const higherOrderFunction = () => fn;const fn = () => 'returning function value.';
const higherOrderFunction = (fn) => {};const fn = () => 'returning function value.';
const higherOrderFunction = (fn) => () => 'another returned function value.';Last updated