diff options
Diffstat (limited to 'node_modules/async/compose.js')
-rw-r--r-- | node_modules/async/compose.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/node_modules/async/compose.js b/node_modules/async/compose.js index 7373e110d..47c49f62d 100644 --- a/node_modules/async/compose.js +++ b/node_modules/async/compose.js @@ -4,16 +4,22 @@ Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = function () /*...args*/{ + return _seq2.default.apply(null, (0, _slice2.default)(arguments).reverse()); +}; + var _seq = require('./seq'); var _seq2 = _interopRequireDefault(_seq); -var _rest = require('./internal/rest'); +var _slice = require('./internal/slice'); -var _rest2 = _interopRequireDefault(_rest); +var _slice2 = _interopRequireDefault(_slice); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +; + /** * Creates a function which is a composition of the passed asynchronous * functions. Each function consumes the return value of the function that @@ -49,7 +55,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de * // result now equals 15 * }); */ -exports.default = (0, _rest2.default)(function (args) { - return _seq2.default.apply(null, args.reverse()); -}); module.exports = exports['default'];
\ No newline at end of file |