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

forEach allows objects, but doesn't provide props in iterate func #69

Closed
noobiek opened this issue May 23, 2018 · 2 comments
Closed

forEach allows objects, but doesn't provide props in iterate func #69

noobiek opened this issue May 23, 2018 · 2 comments

Comments

@noobiek
Copy link

noobiek commented May 23, 2018

Hi,

R.forEach as I see in source is just a proxy to R.map, but returns original data.
So it seems natural to pass Objects to R.forEach (just like R.map). But unfrotunately second argument (prop) is lost in iterate function.

R.map((val,prop) => ...prop is OK here..., {...})
R.forEach((val,prop) => ...prop is undefined here..., {...})

Otherwise R.forEach loops over object's properties just fine.
Is it possible to make prop available inside forEach iterate func?

Thanks!

@selfrefactor
Copy link
Owner

Deployed in the new 1.1.3 version

@noobiek
Copy link
Author

noobiek commented May 28, 2018

Thanks!

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