Sha256: 9ef40fc9cbab3f5fecba0891e0cf8a775273e30808b0cf8c89f0afa86b6689fe
Contents?: true
Size: 638 Bytes
Versions: 14
Compression:
Stored size: 638 Bytes
Contents
var LodashWrapper = require('../internal/LodashWrapper'); /** * Executes the chained sequence and returns the wrapped result. * * @name commit * @memberOf _ * @category Chain * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var array = [1, 2]; * var wrapper = _(array).push(3); * * console.log(array); * // => [1, 2] * * wrapper = wrapper.commit(); * console.log(array); * // => [1, 2, 3] * * wrapper.last(); * // => 3 * * console.log(array); * // => [1, 2, 3] */ function wrapperCommit() { return new LodashWrapper(this.value(), this.__chain__); } module.exports = wrapperCommit;
Version data entries
14 entries across 7 versions & 1 rubygems