ArrayPrototype::shift Method (Object^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes the first element from the specified array and returns it. Shifts the remaining elements to the previous positions.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::HasThisObject, 
	JSBuiltin::Array_shift)]
static Object^ shift(
	Object^ thisob
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

Return Value

Type: System::Object^

The first element of thisob.

.NET Framework
Available since 1.1
Return to top
Show: