• 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.

    Type Parameters

    • T extends object


    • object: T

      The object to modify.

    • path: PropertyPath

      The path of the property to set.

    • value: any

      The value to set.

    Returns T

    Returns object.

  • Type Parameters

    • TResult


    • object: object
    • path: PropertyPath
    • value: any

    Returns TResult



Generated using TypeDoc