Download node_modules/axios/lib/helpers/bind.js from BillAnll/my: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/spaces/BillAnll/my/resolve/main/node_modules/axios/lib/helpers/bind.js
- Command line
-
hf download hf://spaces/BillAnll/my/node_modules/axios/lib/helpers/bind.js
-
curl -L -o bind.js https://huggingface.co/spaces/BillAnll/my/resolve/main/node_modules/axios/lib/helpers/bind.js
444 Bytes
| ; | |
| /** | |
| * 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); | |
| }; | |
| } | |