"use strict";12Object.defineProperty(exports, "__esModule", {3value: true4});56exports.default = function (fn, ...args) {7return (...callArgs) => fn(...args, ...callArgs);8};910module.exports = exports["default"]; /**11* Creates a continuation function with some arguments already applied.12*13* Useful as a shorthand when combined with other control flow functions. Any14* arguments passed to the returned function are added to the arguments15* originally passed to apply.16*17* @name apply18* @static19* @memberOf module:Utils20* @method21* @category Util22* @param {Function} fn - The function you want to eventually apply all23* arguments to. Invokes with (arguments...).24* @param {...*} arguments... - Any number of arguments to automatically apply25* when the continuation is called.26* @returns {Function} the partially-applied function27* @example28*29* // using apply30* async.parallel([31* async.apply(fs.writeFile, 'testfile1', 'test1'),32* async.apply(fs.writeFile, 'testfile2', 'test2')33* ]);34*35*36* // the same process without using apply37* async.parallel([38* function(callback) {39* fs.writeFile('testfile1', 'test1', callback);40* },41* function(callback) {42* fs.writeFile('testfile2', 'test2', callback);43* }44* ]);45*46* // It's possible to pass any number of additional arguments when calling the47* // continuation:48*49* node> var fn = async.apply(sys.puts, 'one');50* node> fn('two', 'three');51* one52* two53* three54*/5556