Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js
-
curl -L -o hasDollarKeys.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js
328 Bytes
| ; | |
| /*! | |
| * ignore | |
| */ | |
| module.exports = function hasDollarKeys(obj) { | |
| if (typeof obj !== 'object' || obj === null) { | |
| return false; | |
| } | |
| const keys = Object.keys(obj); | |
| const len = keys.length; | |
| for (let i = 0; i < len; ++i) { | |
| if (keys[i][0] === '$') { | |
| return true; | |
| } | |
| } | |
| return false; | |
| }; | |