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

Remove the Array.prototype.map polyfill #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ctavan
Copy link

@ctavan ctavan commented Sep 29, 2017

I believe libraries should usually not pollute the global namespace and
should therefore also not modify native prototypes.

In addition Array.prototype.map is supported in all modern browsers
(even IE 9 onwards) so I believe this is safe to drop in the end of
2017.

For people who need to support even older browser there are enough
transpiling solutions these days.

I believe libraries should usually not pollute the global namespace and
should therefore also not modify native prototypes.

In addition Array.prototype.map is supported in all modern browsers
(even IE 9 onwards) so I believe this is safe to drop in the end of
2017.

For people who need to support even older browser there are enough
transpiling solutions these days.
@LaurentVB
Copy link
Collaborator

Hi Ctavan,

Thanks for the suggestion. Perfectly right about the non-pollution thing.
As reasonable as your suggestion is, it's still a breaking change for browser compatibility so it's something we should bump the major version on.
I think the lib is probably due for a modern rewrite, so I'll keep this PR open as a reminder ;-)

Laurent

@ctavan
Copy link
Author

ctavan commented Oct 4, 2017

@LaurentVB thanks for the feedback.

Does that mean that you're currently actively working on a rewrite? Or would you rather suggest that I start my own fork if I need a polyfill-less variant in the near future?

@zyv
Copy link

zyv commented Dec 9, 2018

@LaurentVB any update on that one? More than a year later, IE8- is less relevant than ever before... Thanks!

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.

3 participants