Download node_modules/has-proto/index.js from Thrisha04/Chat: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/Thrisha04/Chat/resolve/main/node_modules/has-proto/index.js
- Command line
-
hf download hf://Thrisha04/Chat/node_modules/has-proto/index.js
-
curl -L -o index.js https://huggingface.co/Thrisha04/Chat/resolve/main/node_modules/has-proto/index.js
302 Bytes
| ; | |
| var test = { | |
| __proto__: null, | |
| foo: {} | |
| }; | |
| var $Object = Object; | |
| /** @type {import('.')} */ | |
| module.exports = function hasProto() { | |
| // @ts-expect-error: TS errors on an inherited property for some reason | |
| return { __proto__: test }.foo === test.foo | |
| && !(test instanceof $Object); | |
| }; | |