Function flat

  • Flatten nested object to given depth.

    Parameters

    • x: object

      a nested object

    • n: number = -1

      maximum depth [-1 ⇒ all]

    • fm: MapFunction = null

      map function (v, k, x)

    • ft: TestFunction = null

      test function for flatten (v, k, x)

    Returns object

    flat map

Generated using TypeDoc