Methods

getΒΆ

get(e:Eachable1, attr:Str)

Return array made of given attribute of each element of given Eachable1 where present
Source: stdlib.ngs:934

Returns

Arr

Example

[{"x": 1}, {"y": 2}].get("x")  # [1]
``aws ec2 describe-instances``.Tags.get("role").uniq()
# Returns Arr of Str with roles. Does not crash if some machines do not have "role" tag.