Skip to main content
List.unshift method

Applies to Windows and Windows Phone

Appends new element(s) to a list, and returns the new length of the list.

Syntax


var number = list.unshift(value);

Parameters

value

Type: Object

The element to insert at the start of the list.

Return value

Type: Number

The new length of the list.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

See also

List