Function flat

  • Flatten nested lists to given depth.

    Returns

    flat lists

    Type Parameters

    • K

    Parameters

    • x: Lists<K, any>

      nested lists

    • n: number = -1

      maximum depth [-1 ⇒ all]

    • fm: MapFunction<K, any, any> = null

      map function (v, k, x)

    • ft: TestFunction<K, any> = null

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

    Returns Lists<K, any>

Generated using TypeDoc