Lodash.set

Sets the value at path of object. If a portion of path doesn't exist, it's created. Arrays are created for missing index properties while objects are created for all other missing properties. Use _.setWith to customize path creation.

Note: This method mutates object.

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

Return Value

Type: auto ref

- Lodash chained on (Object): object.

Meta