npm install + git add -a
Some checks failed
Lint / pre-commit Linting (push) Has been cancelled

This commit is contained in:
2025-12-16 01:08:09 +01:00
parent 63c2e85f7d
commit acfdeab164
448 changed files with 39324 additions and 0 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);
};
};