array.some() - Pine Script Function
array.some()
Section titled “array.some()”Overview
Section titled “Overview”Returns true if at least one element of the id array is true, false otherwise.
Syntax
Section titled “Syntax”array.some(id) → series boolParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | array | An array object. |
Remarks
Section titled “Remarks”- This function also works with arrays of int and float types, in which case zero values are considered false, and all others true.