concat()
The concat()
method in TypeScript joins two or more arrays into a new array without modifying the original ones.
Example
In this example, arr1
and arr2
contain "hello"
and "world"
, respectively. The concat()
method merges them into a new array, arr3
.
Last updated