A software engineer interested in solving real problems, developer productivity & learning languages for fun. Primarily working on Node.js, React & databases. Current Interest: Rustlang
A software engineer interested in solving real problems, developer productivity & learning languages for fun. Primarily working on Node.js, React & databases. Current Interest: Rustlang
Your problem is that you were using reduce to push all the results in the same object.
To collect you can use
Object.assignor
Object.fromEntriesI noticed this as well.
Reduce this many fields at the same object will blow your memory
Exactly! I've seen it going crazy high
Yeah, I realized that soon after. Thanks