Microsoft® JScript™
concat Method (Array)
 Language Reference 
Version 3 

See Also                  Applies To


Description
Combines two arrays to create a new array.
Syntax
array1.concat(array2)

The concat method syntax has these parts:

Part Description
array1 Required. An Array object to concatenate with array2.
array2 Required. An Array object to concatenate to the end of array1.

Remarks
The concat method returns an Array object containing the concatenation of array1 and array2.

If an object reference is copied from either array1 or array2 to the result, the object reference in the result still points to the same object. Changes to that object are reflected in both arrays.


© 1998 Microsoft Corporation. All rights reserved. Terms of Use.