1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.compose = void 0;
|
4 | var util_1 = require("@antv/util");
|
5 | function compose(fn) {
|
6 | var rest = [];
|
7 | for (var _i = 1; _i < arguments.length; _i++) {
|
8 | rest[_i - 1] = arguments[_i];
|
9 | }
|
10 | return fn ? rest.reduce(function (total, current) { return function (x) { return current(total(x)); }; }, fn) : util_1.identity;
|
11 | }
|
12 | exports.compose = compose;
|
13 | //# sourceMappingURL=compose.js.map |
\ | No newline at end of file |