Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p155 reduce() in array #35

Open
jmercier01 opened this issue Aug 8, 2018 · 1 comment
Open

p155 reduce() in array #35

jmercier01 opened this issue Aug 8, 2018 · 1 comment

Comments

@jmercier01
Copy link

jmercier01 commented Aug 8, 2018

Hello. there is an error in the exemple of use of reduce() in Array.
[1,2,3,4,5].reduce( (acc,val) => prev + val ); << 15
I think it's better with
[1,2,3,4,5].reduce( (acc,val) => acc + val ); << 15

@jmercier01 jmercier01 changed the title p175 reduce() in array p155 reduce() in array Aug 21, 2018
@simonmackie
Copy link

simonmackie commented Nov 8, 2018

Sorry, both your issues got missed! thanks for reporting them. I think you're right, this will get fixed in a future update and I'll leave this issue open until it is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants