UNPKG

underscore

Version:

JavaScript's functional programming helper library.

14 lines (9 loc) 270 B
define(['./restArguments', './reduce'], function (restArguments, reduce) { function nextValue(previous, func) { return func(previous); } var pipe = restArguments(function(value, funcs) { return reduce(funcs, nextValue, value); }); return pipe; });