@tsdotnet/array-utility - v1.0.38
    Preparing search index...

    Function flatten

    • Takes any arrays within an array and inserts the values contained within in place of that array. For every count higher than 0 in recurseDepth it will attempt an additional pass. Passing Infinity will flatten all arrays contained.

      Parameters

      • a: any[]
      • recurseDepth: number = 0

      Returns any[]