Class AttrPath

AttrPath

Hierarchy

  • AttrPath

Constructors

Methods

Constructors

Methods

  • is_valid

    Remarks

    Is the path grammatically correct?

    Returns

    true/false

    Parameters

    • path: string

      ObjectPath e.g. ".x.Y.z[1]"

    Returns boolean

  • traverse

    Remarks

    Traverse an object's attributes to get its value.

    Returns

    The value at the position of the path.

    Parameters

    • obj: any

      Object

    • path: string

      ObjectPath e.g. ".x.Y.z[1]"

    Returns any

Generated using TypeDoc