|
Array.clone Method
Makes an exact copy of an Array.
object.clone ()
Arguments
- object
- Required. Always the name of an Array object.
Return Value
The Array.clone method returns an array.
Remarks
The following example illustrates the use of the Array.clone method.
// Let's create some arrays, perform some actions, and compare the arrays.
var a = new Array("a", "c", "b");
var b = a;
var c = a.clone();
a.sort();
Console.Writeln(a.toString()); // returns "a,b,c"
Console.Writeln(b.toString()); // returns "a,b,c"
Console.Writeln(c.toString()); // returns "a,c,b"
Requirements
|