Lodash.set

This method is like _.set 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.

  1. auto ref set(T path, U value)
  2. auto ref set(T path, U value, V customizer)
    struct Lodash
    nothrow @trusted @safe ref
    set
    (
    T
    U
    V
    )
    (
    auto ref T path
    ,
    auto ref U value
    ,
    auto ref V customizer
    )

Return Value

Type: auto ref

- Lodash chained on (Object): object.

Meta