Let's say you have an array of user objects, all with unique IDs, but you want to group them in a single object by their ids.
// These are your o...
For further actions, you may consider blocking this person and/or reporting abuse
Not that it matters, but for the sake of offering an alternative solution I'd probably lean more towards
Object.fromEntriesthanreduce.totally matters and I wish I could heart this twice -- I've never seen
Object.fromEntries!