arraySome

Calls a given closure/function with every element in a given array and returns true if one of the closure calls returns true

arraySome(array, closure [, parallel] [, maxThreads]) → returns boolean

Member Function Syntax

array.some(closure [, parallel] [, maxThreads])

This function requires Lucee. Not supported on Adobe ColdFusion.

arraySome Argument Reference

array array
Required

Array to iterate

closure function
Required

Function/closure that implements the following constructor [function(any value[,numeric index,array array]):boolean].

parallel boolean

Execute closures parallel

maxThreads numeric
Default: 20

Maximum number of threads executed, ignored when argument "parallel" is set to false

Links more information about arraySome


Fork me on GitHub