Function setPropertyByPath

  • Sets the value of a property specified by a given path in an object.

    Parameters

    • obj: any
    • path: string
    • value: any

    Returns boolean

    true if the property was set successfully, false otherwise.