Function flat

  • Flatten nested set to given depth.

    Type Parameters

    • T = any

    Parameters

    • x: Set<T>

      a nested set

    • n: number = -1

      maximum depth [-1 ⇒ all]

    • fm: MapFunction<T, any> = null

      map function (v, v, x)

    • ft: TestFunction<T> = null

      flatten test function (v, v, x) [is]

    Returns Set<any>

    flat set

Generated using TypeDoc