Options
All
  • Public
  • Public/Protected
  • All
Menu

External module Path

Index

Classes

Functions

Functions

del

  • del(obj: any, path: string): boolean
  • Delete a value of an object considering its path

    throw

    InvalidPath

    Parameters

    • obj: any
    • path: string

    Returns boolean

    true in case of successful deletion

get

  • get(obj: any, path: string): any
  • Get a value of an object considering its path

    throw

    InvalidPath

    Parameters

    • obj: any
    • path: string

    Returns any

    undefined if the property is missing or the queried value

set

  • set(obj: any, path: string, value: any): boolean
  • Set a value of an object considering its path

    throw

    InvalidPath

    Parameters

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

    Returns boolean

    true in case of successful affectation

Generated using TypeDoc