You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: