List
Filter
Filter(list: any[], predicate: (any) -> boolean) -> any[]
The items of list for which predicate holds, in order.
Map
Map(list: any[], transform: (any) -> any) -> any[]
Each item of list passed through transform.
Find
Find(list: any[], predicate: (any) -> boolean) -> any
The first item of list for which predicate holds, or null.
Every
Every(list: any[], predicate: (any) -> boolean) -> boolean
True when predicate holds for every item of list.
Some
Some(list: any[], predicate: (any) -> boolean) -> boolean
True when predicate holds for at least one item of list.
Reduce
Reduce(list: any[], initial: any, reducer: (any, any) -> any) -> any
Folds list into one value, left to right, starting from initial.