Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js
-
curl -L -o isTextIndex.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js
314 Bytes
| ; | |
| /** | |
| * Returns `true` if the given index options have a `text` option. | |
| */ | |
| module.exports = function isTextIndex(indexKeys) { | |
| let isTextIndex = false; | |
| for (const key of Object.keys(indexKeys)) { | |
| if (indexKeys[key] === 'text') { | |
| isTextIndex = true; | |
| } | |
| } | |
| return isTextIndex; | |
| }; | |