basant307/AI_Governance_Project
048
1var LodashWrapper = require('./_LodashWrapper');2 3/**4 * Executes the chain sequence and returns the wrapped result.5 *6 * @name commit7 * @memberOf _8 * @since 3.2.09 * @category Seq10 * @returns {Object} Returns the new `lodash` wrapper instance.11 * @example12 *13 * var array = [1, 2];14 * var wrapped = _(array).push(3);15 *16 * console.log(array);17 * // => [1, 2]18 *19 * wrapped = wrapped.commit();20 * console.log(array);21 * // => [1, 2, 3]22 *23 * wrapped.last();24 * // => 325 *26 * console.log(array);27 * // => [1, 2, 3]28 */29function wrapperCommit() {30 return new LodashWrapper(this.value(), this.__chain__);31}32 33module.exports = wrapperCommit;34 