List.map method

0 out of 2 rated this helpful - Rate this topic

Calls the specified callback function on each element of a list, and returns an array that contains the results.

Syntax


var array = list.map(callback, thisArg);

Parameters

callback

Type: Function

A function that accepts up to three arguments. The function is called for each element in the list.

thisArg

Type: Object

n object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used.

Return value

Type: Array

An array containing the result of calling the callback function on each element in the 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.