• Sets the value at path of object. If a portion of path doesn't exist, it's create.

    Parameters

    • object: object

      The object to modify.

    • path: string

      The path of the property to set.

    • Optional value: unknown

      The value to set.

    Returns object

    • Returns object.