Function concat

  • A simple generic function that concatenates two arrays.

    Use @typeParam <param name> to document generic type parameters, e.g.

    @typeParam T the element type of the arrays
    

    Type Parameters

    • T

      the element type of the arrays

    Parameters

    • array1: T[]
    • array2: T[]

    Returns T[]