Download node_modules/call-bound/index.js from Snapkitty/agentscope-sift: direct link, hf CLI and curl.
- Browser
- Download file 706 Bytes
-
https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/call-bound/index.js
- Command line
-
hf download hf://Snapkitty/agentscope-sift/node_modules/call-bound/index.js
-
curl -L -o index.js https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/call-bound/index.js
706 Bytes
| ; | |
| var GetIntrinsic = require('get-intrinsic'); | |
| var callBindBasic = require('call-bind-apply-helpers'); | |
| /** @type {(thisArg: string, searchString: string, position?: number) => number} */ | |
| var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]); | |
| /** @type {import('.')} */ | |
| module.exports = function callBoundIntrinsic(name, allowMissing) { | |
| /* eslint no-extra-parens: 0 */ | |
| var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing)); | |
| if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { | |
| return callBindBasic(/** @type {const} */ ([intrinsic])); | |
| } | |
| return intrinsic; | |
| }; | |