List.some method
Checks whether the specified callback function returns true for any element of a list.
var boolean = list.some(callback, thisArg);
callback
Type: FunctionA 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: ObjectAn object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used.
Type: Boolean
true if callback returns true for any element in the list.
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Binding |