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

Doesn't work with custom array prototype extensions. #32

Closed
drunkhacker opened this issue Jul 20, 2015 · 0 comments
Closed

Doesn't work with custom array prototype extensions. #32

drunkhacker opened this issue Jul 20, 2015 · 0 comments

Comments

@drunkhacker
Copy link

If 'Array' type is extended like below, enumeration using for (var i in ...) doesn't work as expected.

Array.prototype.foo = function() { console.log("hi"); }
a = [1,2,3,4,5];
for (var i in a) {
  console.log(i); //foo will be enumerated
}

This causes invalid regular expression error in validate_phone_iso3166 function.

teddychan added a commit that referenced this issue Aug 20, 2015
Use every/some to replace for...in loop, this fixes #32
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