I have a collection col with elements of type Foo.
Foo has a var bar, which I need to change for every element in the collection.
Currently my code looks like this
col.map(baz => {
baz.bar = <something>
baz
})
Is there a nicer way to do this? I feel like this could be done with a one liner.