@s-libs/micro-dash
    Preparing search index...

    Function flatten

    • Flattens array a single level deep.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 1,361 bytes
      • Micro-dash: 113 bytes

      Type Parameters

      • T

      Parameters

      • array: readonly (T | readonly T[])[]

      Returns T[]