Usabilty Engineer and JavaScript/TypeScript Developer.
On the path to become a Clean Code Developer.
Also rediscovering OOP-Principals and Design-Patterns.
I always have to think hard before I use reduce, thats why I checked your example. Nice work.
Please Double check your code examples. Your example for the syntax of the reduce method is (syntactically) incorrect. You probably wanted to write "initialValue" instead of "inital value".
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.
I always have to think hard before I use reduce, thats why I checked your example. Nice work.
Please Double check your code examples. Your example for the syntax of the reduce method is (syntactically) incorrect. You probably wanted to write "initialValue" instead of "inital value".