Skip to content

where ​

where(items) => a ​

ParameterTypeDescription
itemsIterable

Returns ​

(Generator) A list of values containing only those who evaluated to true in the closure.

Example ​

elk
[1, 2, 3] | select => x: x + 1 #=> [2, 3, 4]
[1, 2, 3] | select => x: x + 1 #=> [2, 3, 4]