concat()
concat<
T
>(newValue
): (concatable
) =>T
[]
Concatenate the two given arrays together.
Type Parameters
• T
Parameters
newValue
T
[]
The first array to append to.
Returns
Function
Parameters
concatable
T
[]
Returns
T
[]
Remark
pure function
Example
concat([1, 2, 3])([4, 5, 6]);
// [1, 2, 3, 4, 5, 6]