Skip to main content
List.slice method

Applies to Windows and Windows Phone

Extracts a section of a list and returns a new list.

Syntax


var newList = list.slice(begin, end);

Parameters

begin

Type: Number

The index that specifies the beginning of the section.

end

Type: Number

The index that specifies the end of the section.

Return value

Type: List

Returns a section of 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