Skip to content

map ​

map(items) => a ​

ParameterTypeDescription
itemsIterable

Returns ​

(Generator) A list of values where the closure has been called on each value.

Example ​

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