Partager via


List.slice method

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

WinJS 1.0

Namespace

WinJS.Binding

See also

List