C# has a high performance array copying function to copy arrays in place:
Array.Copy(source, destination, length)
It\'s faster tha
You're looking for .set which allows you to set the values of an array using an input array (or TypedArray), optionally starting at some offset on the destination array:
destination.set(source);
destination.set(source, offset);
Or, to set a limited amount of the input array:
destination.set(source.slice(limit), offset);
If you instead want to create a new TypedArray, you can simply use .slice
:
source.slice();