Given an array like this:
[{a: 1, b: 2}, {a: 3, b: 4}, {a: 5, b: 6}]
Is there any (easy) way to return the an array of the same objects, but just with a selected property? E.g. let's say I only wanted to retain property "a" ...
[{a: 1}, {a: 3} {a: 5}]
let result = arr.map(({a}) => ({a}))