IR Framework

Array.promote Method

Moves an element toward the beginning of the array.
object.promote (index)

Arguments

object
Required. Always the name of an Array object.


index
Required. The index of the element to promote.



Return Value

The Array.promote method does not return a value.

Remarks

The following example illustrates the use of the Array.promote method.

var a = new Array("a","b","c");
a.promote(2);

Console.Writeln(a.toString());		//	returns "a,c,b"


Requirements