Node_modules

This commit is contained in:
luke-hagar-sp
2022-07-22 20:22:32 -05:00
parent 5367764043
commit b2c7832873
299 changed files with 35140 additions and 4 deletions

27
node_modules/axios/lib/helpers/spread.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
'use strict';
/**
* Syntactic sugar for invoking a function and expanding an array for arguments.
*
* Common use case would be to use `Function.prototype.apply`.
*
* ```js
* function f(x, y, z) {}
* var args = [1, 2, 3];
* f.apply(null, args);
* ```
*
* With `spread` this example can be re-written.
*
* ```js
* spread(function(x, y, z) {})([1, 2, 3]);
* ```
*
* @param {Function} callback
* @returns {Function}
*/
module.exports = function spread(callback) {
return function wrap(arr) {
return callback.apply(null, arr);
};
};