JavaScript ({…Spread}) and reduce(): Avoiding a common anti-pattern
Table of Contents
Introduction
The anti-pattern
The solution
Performance comparison (following benchmark)
Conclusion
Introduction:
Spreading is a powerful feature in JavaScript that allows us to expand an iterable object (such as an array or s...
mohamedzhioua.hashnode.dev2 min read