I have a set which needs to be converted into an object with the set\'s unique values as the object keys and an empty string as each element\'s value in the object.
H
Here's one way:
[...uom].reduce((o, u) => { o[u] = ''; return o; }, {})