11

New formula functions

complete

S

Sasu Mäkinen

ALL/EVERY

The EVERY function tests whether all elements in the array pass the test implemented by the provided function. It returns a Boolean value.

ANY/SOME

The ANY function tests whether at least one element in the array passes the test implemented by the provided function. It returns a Boolean value.

Log In

Activity

Newest

Oldest

Kristian Gerkman

complete

Kimmo Kiiski

in progress

Formula functions SOME, EVERY and EXACTLY_ONE are being developed.

Kimmo Kiiski

I propose the following signatures:

SOME(array: Array, selectionFormula: Formula) => Boolean

EVERY(array: Array, selectionFormula: Formula) => Boolean

So parameters are same than in FIND(…), but the return value is either true or false. Functionality would be equal to JavaScript arrays'

some

and every

methods.