/
Ponpon1228
/
Project
Обзор
Документация
Войти
/
Ponpon1228
/
Project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
server/node_modules/axios/lib/helpers/bind.js
14 строк
444 B
xomimishka
Initial commit
24 ноя 2025, 15:54
24 ноя 2025, 15:54
d23c86f
Код
Авторство
О чём код?
'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); }; }