Поделиться через


List.unshift method

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 WinJS version

WinJS 1.0

Namespace

WinJS.Binding

See also

List