Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/isMongooseObject.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/isMongooseObject.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/isMongooseObject.js
-
curl -L -o isMongooseObject.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/isMongooseObject.js
550 Bytes
| ; | |
| const isMongooseArray = require('../types/array/isMongooseArray').isMongooseArray; | |
| /** | |
| * Returns if `v` is a mongoose object that has a `toObject()` method we can use. | |
| * | |
| * This is for compatibility with libs like Date.js which do foolish things to Natives. | |
| * | |
| * @param {Any} v | |
| * @api private | |
| */ | |
| module.exports = function(v) { | |
| return ( | |
| v != null && ( | |
| isMongooseArray(v) || // Array or Document Array | |
| v.$__ != null || // Document | |
| v.isMongooseBuffer || // Buffer | |
| v.$isMongooseMap // Map | |
| ) | |
| ); | |
| }; | |