Skip to main content

Iterator: Some

Run a predicate sub-graph once per element of an input list and emit true as soon as one element returns true. Short-circuits on the first match. Mirrors JavaScript's Array.prototype.some.

Example
Input: [1, 2, 3]
Body: el → el > 2
Output: true

Parameters​

This function has no parameters.

Input​

Arrayrequired

List to iterate over (Array or JSON array).

Value

Optional value injected into every iteration as value on the entry node.

Output​

Result

true if at least one element matched, false otherwise.