"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Compose functions from left to right
* Reference: https://1loc.dev/#compose-functions-from-left-to-right
* @category func
* @module pipe
*/
function pipe() {
var fns = [];
for (var _i = 0; _i < arguments.length; _i++) {
fns[_i] = arguments[_i];
}
return function (arg) { return fns.reduce(function (y, f) { return f(y); }, arg); };
}
exports.default = pipe;
Source