Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/getConstructorName.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/getConstructorName.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/getConstructorName.js
-
curl -L -o getConstructorName.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/getConstructorName.js
334 Bytes
| ; | |
| /** | |
| * If `val` is an object, returns constructor name, if possible. Otherwise returns undefined. | |
| * @api private | |
| */ | |
| module.exports = function getConstructorName(val) { | |
| if (val == null) { | |
| return void 0; | |
| } | |
| if (typeof val.constructor !== 'function') { | |
| return void 0; | |
| } | |
| return val.constructor.name; | |
| }; | |