3 ms·
Yeah. I have noticed few instances of badly optimised functional code. something like examples.reduce((accumulator, example) => { // logic retu
by searchableguy 6y ago
Yeah. I have noticed few instances of badly optimised functional code.
something like
examples.reduce((accumulator, example) => {
// logic
return {...accumulator,[example.name]: example.value }
}, {})
Object spreading and destructuring combined with fancy immutable array methods smell..