Skip to content

Remove polyfill for Array.includes() #4061

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

grigoriy-reshetniak
Copy link
Contributor

I think of this MR as continuation of #1645. There was a custom function, but native Array.includes() is widely adopted now and based on config in .browserlistrc polyfill is not needed anymore.

What is the previous behavior before this PR?
utils.contains() was used to find if array contains an element.

What is the new behavior after this PR?
Native Array.includes() is used for this purpose. Array.includes() presented in the output file.

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 this pull request may close these issues.

1 participant