I have an array like this
const array = [{a: '1', b: '2'}, {a: '3', b: '4' }];
I want to join the only field into a string to have a result like this: '1, 3'
The join function of an array can only be used on the whole entry, not on fields of the object that is underneath. Is there a way to do this with standard functionality or do I have to use a for loop or a forEach?