Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/lodash/cloneDeep.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/cloneDeep.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject/masteringModule/node_modules/lodash/cloneDeep.js
-
curl -L -o cloneDeep.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/cloneDeep.js
679 Bytes
| var baseClone = require('./_baseClone'); | |
| /** Used to compose bitmasks for cloning. */ | |
| var CLONE_DEEP_FLAG = 1, | |
| CLONE_SYMBOLS_FLAG = 4; | |
| /** | |
| * This method is like `_.clone` except that it recursively clones `value`. | |
| * | |
| * @static | |
| * @memberOf _ | |
| * @since 1.0.0 | |
| * @category Lang | |
| * @param {*} value The value to recursively clone. | |
| * @returns {*} Returns the deep cloned value. | |
| * @see _.clone | |
| * @example | |
| * | |
| * var objects = [{ 'a': 1 }, { 'b': 2 }]; | |
| * | |
| * var deep = _.cloneDeep(objects); | |
| * console.log(deep[0] === objects[0]); | |
| * // => false | |
| */ | |
| function cloneDeep(value) { | |
| return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); | |
| } | |
| module.exports = cloneDeep; | |