deno.land / x / lodash@4.17.19 / npm-package / commit.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
lodash

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉