🔵 🔵 🔵


Primary

၊၊||၊|။

any() ⚬ᵈᵛ|Documentation|1st|20251021180554-00-⌔

Functions - Dataview#anyarray

any(array)

Returns true if ANY of the values in the array are truthy. You can also pass multiple arguments to this function, in which case it returns true if any of the arguments are truthy.

any(list(1, 2, 3)) = true
any(list(true, false)) = true
any(list(false, false, false)) = false
any(true, false) = true
any(false, false) = false

You can pass a function as second argument to return only true if any element in the array matches the predicate.

any(list(1, 2, 3), (x) => x > 2) = true
any(list(1, 2, 3), (x) => x = 0) = false

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •