Step - all

all ยท category: Filters

Keeps a list whose every element matches the predicate (an empty list matches).

Forms

all(arg1: any)

Example

g.inject([1, 2, 3]).all(P.gt(0)).next()   // [1, 2, 3]