Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/lodash/defaultTo.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/defaultTo.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject/masteringModule/node_modules/lodash/defaultTo.js
-
curl -L -o defaultTo.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/defaultTo.js
608 Bytes
| /** | |
| * Checks `value` to determine whether a default value should be returned in | |
| * its place. The `defaultValue` is returned if `value` is `NaN`, `null`, | |
| * or `undefined`. | |
| * | |
| * @static | |
| * @memberOf _ | |
| * @since 4.14.0 | |
| * @category Util | |
| * @param {*} value The value to check. | |
| * @param {*} defaultValue The default value. | |
| * @returns {*} Returns the resolved value. | |
| * @example | |
| * | |
| * _.defaultTo(1, 10); | |
| * // => 1 | |
| * | |
| * _.defaultTo(undefined, 10); | |
| * // => 10 | |
| */ | |
| function defaultTo(value, defaultValue) { | |
| return (value == null || value !== value) ? defaultValue : value; | |
| } | |
| module.exports = defaultTo; | |