Spaces:
Runtime error
Runtime error
Download masteringModule/node_modules/lodash/commit.js from SE-09/HapticsProject: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/commit.js
- Command line
-
hf download hf://spaces/SE-09/HapticsProject/masteringModule/node_modules/lodash/commit.js
-
curl -L -o commit.js https://huggingface.co/spaces/SE-09/HapticsProject/resolve/main/masteringModule/node_modules/lodash/commit.js
641 Bytes
| var LodashWrapper = require('./_LodashWrapper'); | |
| /** | |
| * Executes the chain sequence and returns the wrapped result. | |
| * | |
| * @name commit | |
| * @memberOf _ | |
| * @since 3.2.0 | |
| * @category Seq | |
| * @returns {Object} Returns the new `lodash` wrapper instance. | |
| * @example | |
| * | |
| * var array = [1, 2]; | |
| * var wrapped = _(array).push(3); | |
| * | |
| * console.log(array); | |
| * // => [1, 2] | |
| * | |
| * wrapped = wrapped.commit(); | |
| * console.log(array); | |
| * // => [1, 2, 3] | |
| * | |
| * wrapped.last(); | |
| * // => 3 | |
| * | |
| * console.log(array); | |
| * // => [1, 2, 3] | |
| */ | |
| function wrapperCommit() { | |
| return new LodashWrapper(this.value(), this.__chain__); | |
| } | |
| module.exports = wrapperCommit; | |