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

IE 11 - Array.prototype.find / Array.prototype.findIndex #1087

Closed
nekman opened this issue Feb 15, 2017 · 2 comments
Closed

IE 11 - Array.prototype.find / Array.prototype.findIndex #1087

nekman opened this issue Feb 15, 2017 · 2 comments

Comments

@nekman
Copy link

nekman commented Feb 15, 2017

Don't know if this is a bug, but I currently missing the Array.prototype.findIndex / Array.prototype.find when running IE 11 on Windows 8.1.

<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script>[1, 2, 3].find(item => item === 2); //will not work</script>

Here is the unminified version of the polyfill response: https://gist.github.com/nekman/297ebda63d6b00380058cbb0114296aa

@JakeChampion
Copy link
Collaborator

They are not in the default set of polyfills, if you would like to include these in your polyfill bundle you will need to use this url.
https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Array.prototype.find,Array.prototype.findIndex

We have a section in the documentation about the default sets -- https://polyfill.io/v2/docs/features/#default-sets

A quick way to see if a feature is in the latest default set is by looking at the feature list, if the feature has a black star next to it, it is in the default set -- https://polyfill.io/v2/docs/features/#feature-list

@nekman
Copy link
Author

nekman commented Feb 15, 2017

Thank you @JakeChampion. I should have looked closer on the documentation. Sorry!

@nekman nekman closed this as completed Feb 15, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants