List.some method

0 out of 1 rated this helpful - Rate this topic

Checks whether the specified callback function returns true for any element of a list.

Syntax


var boolean = list.some(callback, thisArg);

Parameters

callback

Type: Function

A function that accepts up to three arguments. The function is called for each element in the list until it returns true, or until the end of the list.

thisArg

Type: Object

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

Return value

Type: Boolean

true if callback returns true for any 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.