ArrayPrototype.unshift(Object, Object[]) Methode

Definitie

Voegt nieuwe elementen toe aan het begin van de opgegeven matrix. Hiermee worden de bestaande elementen naar de volgende posities verplaatst.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

public:
 static System::Object ^ unshift(System::Object ^ thisob, ... cli::array <System::Object ^> ^ args);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs, Microsoft.JScript.JSBuiltin.Array_unshift)]
public static object unshift(object thisob, params object[] args);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject | Microsoft.JScript.JSFunctionAttributeEnum.HasVarArgs, Microsoft.JScript.JSBuiltin.Array_unshift)>]
static member unshift : obj * obj[] -> obj
Public Shared Function unshift (thisob As Object, ParamArray args As Object()) As Object

Parameters

thisob
Object

Het object waarop deze methode handelt.

args
Object[]

De elementen die moeten worden toegevoegd aan thisob.

Retouren

De nieuwe lengte van thisob.

Kenmerken

Van toepassing op

Zie ook