Skip to content
NateLillich edited this page Oct 22, 2012 · 4 revisions

Boolean Spark.any( Object|Array obj, Boolean Function( * ) predicate )

Detects if the predicate is true for any of the values in obj.

Parameters

Object|Array obj

The object or array to test the values of.

Boolean Function( * ) predicate

The function to test each value with. Should return true or false.

Return Boolean

True if the predicate returns true for any of the values in obj.

Clone this wiki locally