Download node_modules/call-bound/index.js from HarshvardhanCn01/Voice-Assistant: direct link, hf CLI and curl.
- Browser
- Download file 667 Bytes
-
https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/call-bound/index.js
- Command line
-
hf download hf://spaces/HarshvardhanCn01/Voice-Assistant/node_modules/call-bound/index.js
-
curl -L -o index.js https://huggingface.co/spaces/HarshvardhanCn01/Voice-Assistant/resolve/main/node_modules/call-bound/index.js
667 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-disable-next-line no-extra-parens | |
| var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing)); | |
| if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { | |
| return callBindBasic([intrinsic]); | |
| } | |
| return intrinsic; | |
| }; | |