Options
All
  • Public
  • Public/Protected
  • All
Menu

Module concat

Index

References

Functions Array

References

Renames and re-exports concat

Array Functions

  • concat<T>(...arrays: T[] | T[][]): T[]
  • Creates a new array concatenating array with any additional arrays and/or values.

    since

    5.0.0

    example
    var array = [1];
    var other = concat(array, 2, [3], [[4]]);

    console.log(other);
    // => [1, 2, 3, [4]]

    console.log(array);
    // => [1]

    Type parameters

    • T

    Parameters

    • Rest ...arrays: T[] | T[][]

    Returns T[]

    Returns the new concatenated array.