Download node_modules/get-proto/index.js from kirimdata369/task-manager-pro: direct link, hf CLI and curl.
- Browser
- Download file 821 Bytes
-
https://huggingface.co/spaces/kirimdata369/task-manager-pro/resolve/main/node_modules/get-proto/index.js
- Command line
-
hf download hf://spaces/kirimdata369/task-manager-pro/node_modules/get-proto/index.js
-
curl -L -o index.js https://huggingface.co/spaces/kirimdata369/task-manager-pro/resolve/main/node_modules/get-proto/index.js
821 Bytes
| ; | |
| var reflectGetProto = require('./Reflect.getPrototypeOf'); | |
| var originalGetProto = require('./Object.getPrototypeOf'); | |
| var getDunderProto = require('dunder-proto/get'); | |
| /** @type {import('.')} */ | |
| module.exports = reflectGetProto | |
| ? function getProto(O) { | |
| // @ts-expect-error TS can't narrow inside a closure, for some reason | |
| return reflectGetProto(O); | |
| } | |
| : originalGetProto | |
| ? function getProto(O) { | |
| if (!O || (typeof O !== 'object' && typeof O !== 'function')) { | |
| throw new TypeError('getProto: not an object'); | |
| } | |
| // @ts-expect-error TS can't narrow inside a closure, for some reason | |
| return originalGetProto(O); | |
| } | |
| : getDunderProto | |
| ? function getProto(O) { | |
| // @ts-expect-error TS can't narrow inside a closure, for some reason | |
| return getDunderProto(O); | |
| } | |
| : null; | |