The reduce ({…spread}) anti-pattern
- reduce …spread belongs to a different complexity class than the optimal solutions, which is bad
- javascript engines will probably never optimize this code
- if you’re using reduce …spread for reasons of immutability, you should copy once or use immutable helper libraries