Tweakr
    Preparing search index...

    Function concat

    • Merges multiple arrays or values into a single new array.

      Accepts any combination of arrays and individual elements.

      Type Parameters

      • T

      Parameters

      • ...arrays: (T | T[])[]

        One or more arrays or values to concatenate.

      Returns T[]

      A new array containing all provided elements in order.

      concat([1], [2, 3], 4);
      // → [1, 2, 3, 4]

      1.0.0