Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/helpers/isStringOrHole.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/helpers/isStringOrHole.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/helpers/isStringOrHole.js
-
curl -L -o isStringOrHole.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/helpers/isStringOrHole.js
338 Bytes
| ; | |
| // TODO: semver-major: remove | |
| var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false | |
| module.exports = function isStringOrHole(item, index, arr) { | |
| return typeof item === 'string' || (canDistinguishSparseFromUndefined ? !(index in arr) : typeof item === 'undefined'); | |
| }; | |