Module

x/lodash_es/src/seq.js>commit

lodash for deno use
Latest
function commit
import { commit } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/seq.js";

Executes the chain sequence and returns the wrapped result.

Examples

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]