Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/updateWith.js";

This method is like _.update except that it accepts customizer which is invoked to produce the objects of path. If customizer returns undefined path creation is handled by the method instead. The customizer is invoked with three arguments: (nsValue, key, nsObject).

Note: This method mutates object.

Examples

var object = {};

_.updateWith(object, '[0][1]', _.constant('a'), Object); // => { '0': { '1': 'a' } }

Parameters

object

The object to modify.

path

The path of the property to set.

updater

The function to produce the updated value.

customizer