Function hasPath

  • Check if nested object has a path.

    Parameters

    • x: object

      a nested object

    • p: string[]

      path

    Returns boolean

    x[k₀][k₁][...] exists? | [k₀, k₁, ...] = p

Generated using TypeDoc