✏️ 编辑:commit.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/commit.js
大小:641 B · 修改:2022-11-21 20:09:46 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
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;
💾 保存
取消
保存为 UTF-8,换行统一为 LF