Skip to content

@lang:any

Return true if at least one element satisfies the predicate.

Returns: bool

@lang:any(arr fn)
NameTypeDescription
arrarraySource array
fnhelperPredicate helper returning bool
  • @all — true if all match
  • @filter — keep matching elements