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

(IE11) array.prototype.find adds 'find' key #74

Open
Pzenarch opened this issue Jul 28, 2020 · 1 comment
Open

(IE11) array.prototype.find adds 'find' key #74

Pzenarch opened this issue Jul 28, 2020 · 1 comment

Comments

@Pzenarch
Copy link

Adding the 'Array.prototype.find' script - under IE11 - causes 'find' to be returned as a key when looping through any array, even an empty one.

var x = []; for( var key in x ) console.log(key);

The above code logs 'find' to the console, only when the shim is added however. I suspect looking at the code that other array shims will have a similar impact.

@msn0
Copy link
Owner

msn0 commented Jul 29, 2020

Hi @Pzenarch. I updated Array.prototype.find polyfill with the latest changes from MDN. Please try with this version:

npm install mdn-polyfills@canary

it's also available here https://cdn.jsdelivr.net/npm/[email protected]/Array.prototype.find.js

Let me know if it's working.

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