Skip to content

Latest commit

 

History

History
75 lines (63 loc) · 2.78 KB

File metadata and controls

75 lines (63 loc) · 2.78 KB

Function: ArraySome

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

Method Signature

ArraySome(array=[array], callback=[function:Predicate], parallel=[boolean], maxThreads=[integer], initialValue=[any])

Arguments

Argument Type Required Description Default
array array true The array to reduce
callback function:Predicate true The function to invoke for each item. The function will be passed 3 arguments: the value, the index, the array. You can alternatively pass a Java Predicate which will only receive the 1st arg.
parallel boolean false Specifies whether the items can be executed in parallel false
maxThreads integer false The maximum number of threads to use when parallel = true
initialValue any false

Examples

Related