Function hasPath

  • Check if nested array has a path.

    Parameters

    • x: any[]

      a nested array

    • p: number[]

      path

    Returns boolean

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

Generated using TypeDoc