Demo: Array Matching

The following are results from running dojo.every and dojo.some on the lists represented. A result of true is represented by the function name being highlighted.


Condition:

function(item){ return item == 1; }
		

Array:

Results:

dojo.every dojo.some


Condition:

function(item){ return item == 1; }
		

Array:

Results:

dojo.every dojo.some


Condition:

function(item){ return item == 2; }
		

Array:

Results:

dojo.every dojo.some