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