Function flatArray

A function that flattens a given array to a single level.

  • Type Parameters

    • T = any

    Parameters

    • Rest...arr: any[]

      The array(s) to be flattened.

    Returns T[]

    • The flattened array.