No need to store an additional variable in the memory. Array.prototype.reduce is a bit slower though. So it's a question of memory management vs performance.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
No need to store an additional variable in the memory.
Array.prototype.reduce
is a bit slower though. So it's a question of memory management vs performance.