Function deletePropertyByPath

  • Deletes a property in an object and all its predecessors, if they otherwise would be empty objects.

    Parameters

    • obj: any
    • path: string

    Returns void