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

Adding enumerable properties to Array #12

Open
AniketAman opened this issue Apr 19, 2017 · 0 comments
Open

Adding enumerable properties to Array #12

AniketAman opened this issue Apr 19, 2017 · 0 comments

Comments

@AniketAman
Copy link

It is adding max, min, mean, rep, and pip as an enumerable property to all the arrays.
As a result of which these properties are coming up in all for..in loops (even on empty arrays).
As a temporary fix, I had to modify all the additions in the Array.prototype using Object.defineProperty.

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

1 participant