List.every method

Applies to Windows and Windows Phone

Checks whether the specified callback function returns true for all elements in a list.

Syntax


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

Parameters

callback

Type: Function

A function that accepts up to three arguments. This function is called for each element in the list until it returns false or the end of the list is reached.

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 the callback returns true for all elements in the list.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

See also

List

 

 

Show:
© 2014 Microsoft. All rights reserved.