Methods

getΒΆ

get(e:Eachable1, attr:Str, dflt:Any)

Return array made of given attribute of each element of given Eachable1 where present or default value where the attribute is not present Return array (? depends on map() ?) made of given attribute of each element of given Eachable1
Source: stdlib.ngs:943

Returns

Arr

Example

[{"x": 1}, {"y": 2}].get("x", null)  # [1, null]