Demo: Array Matching

The following are results from running every and 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:

every some


Condition:

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

Array:

Results:

every some


Condition:

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

Array:

Results:

every some