List.slice method

This topic has not yet been rated - Rate this topic

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

Namespace

WinJS.Binding

Library

Base.js

See also

List

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.