Skip to content

Broken loop in yallApplyFn #70

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

Closed
Mobe91 opened this issue Oct 9, 2019 · 0 comments · Fixed by #71
Closed

Broken loop in yallApplyFn #70

Mobe91 opened this issue Oct 9, 2019 · 0 comments · Fixed by #71

Comments

@Mobe91
Copy link
Contributor

Mobe91 commented Oct 9, 2019

yallApplyFn uses a for ... in loop to loop over an array. However, this loop also considers all enumerable object keys and not only array indices. This can break the intended functionality in cases where e.g. Array.prototype has been extended by custom keys.

Mobe91 added a commit to ordami/yall.js that referenced this issue Oct 9, 2019
malchata added a commit that referenced this issue Nov 22, 2019
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

Successfully merging a pull request may close this issue.

1 participant