/
githubmirror
/
axios
Обзор
Документация
Войти
/
githubmirror
/
axios
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.x
lib/helpers/bind.js
14 строк
444 B
Abhishek3880
docs: add comprehensive JSDoc documentation to bind helper function (#7119)
09 окт 2025, 10:43
Не верифицирован
09 окт 2025, 10:43
34ed581
Код
Авторство
О чём код?
'use strict'; /** * 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 */ export default function bind(fn, thisArg) { return function wrap() { return fn.apply(thisArg, arguments); }; }