Array.Copy in UnityScript

var a1 = new Array();
var a2 = new Array();
Array.Copy(a1 ,0 , a2 ,0, 1);

.>>‘Copy’ is not a member of ‘Array’.

How can I copy an array in UnityScript?

Don’t use the Array class. It is untyped and slow and the source of numerous questions on UA because of its untyped nature. If your data is of fixed size, then use a build-in array, which can be copied using System.Array.Copy(). If you need something of variable size, use one of the .NET generic collections like the List class (which has a Copy() method).