Files
appco_dist/.output/server/node_modules/axios/lib/helpers/bind.js
T

15 lines
444 B
JavaScript
Raw Normal View History

2026-01-27 16:47:33 +03:30
'use strict';
2026-02-01 17:38:39 +03:30
/**
* Create a bound version of a function with a specified `this` context
*
* @param {Function} fn - The function to bind
* @param {*} thisArg - The value to be passed as the `this` parameter
* @returns {Function} A new function that will call the original function with the specified `this` context
*/
2026-01-27 16:47:33 +03:30
export default function bind(fn, thisArg) {
return function wrap() {
return fn.apply(thisArg, arguments);
};
}