Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@sinonjs/commons/lib/value-to-string.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40sinonjs/commons/lib/value-to-string.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@sinonjs/commons/lib/value-to-string.js
-
curl -L -o value-to-string.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40sinonjs/commons/lib/value-to-string.js
370 Bytes
| ; | |
| /** | |
| * Returns a string representation of the value | |
| * | |
| * @param {*} value | |
| * @returns {string} | |
| */ | |
| function valueToString(value) { | |
| if (value && value.toString) { | |
| // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods | |
| return value.toString(); | |
| } | |
| return String(value); | |
| } | |
| module.exports = valueToString; | |