Version: v0.8.1 - Beta.  We welcome contributors & feedback.

List.any

any($callbackFunction) -> boolean

Description

Apply $callbackFunction to every item in the list.

Return true immediately if one of the items result in true.

$nums = [10, 20, 30]

$nums.any(fun ($n) { return $n > 20 })
//= true

// or using expression notation
$nums.any(x{ $a > 20 })
//= true

See Also