Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uparray-callback-return example corrected in Readme.md for issue #1806 #2072
Conversation
Please fix all the linting errors. However, the original issue doesn't actually have a clear solution yet, so a PR was premature. |
Can you please check. I removed them sir. |
I'm still not clear on why reduces are better examples than filters? |
Reducers aren't better or less than filters, but I think for a newbie understanding the above example would be much simpler than the filter example as it clearly shows how an array is getting reduced and values returned and stored in a new array. |
There's already reduce examples above it; the purpose of the section is to talk about callbacks - showing different kinds of callbacks, like filter predicates, is useful. |
abhinavsharma629 commentedAug 15, 2019
•
edited by ljharb
Fixes #1806