Is there a need of polyfills now for es5 Array methods #604
Replies: 9 comments
-
It's a good question. As you might know we have a proposed project to sort out polyfills on MDN, that didn't get prioritised in this quarter but which I do expect we will get to in 2022 (openwebdocs/project#27). As part of that @teoli2003 started a discussion about when we should have any polyfills at all: https://github.com/mdn/content/discussions/7841 and by his proposed criteria we should remove them at least for the 5 pages you've listed here, which are all supported from IE9. So I'd say: yes, we can remove these. I'll drop a link to this issue in the discussion. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
However, I agree that naive polyfills posted directly on MDN that do not cover modern cases and sometimes even are harmful should be removed. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Closing as outdated/irrelevant. |
Beta Was this translation helpful? Give feedback.
-
What information was incorrect, unhelpful, or incomplete?
I think the polyfill isn't necessary now as es5 supported by most of the browsers now.
If it is to be removed then I'd like to work on it.
Some other pages that have the polyfills :
Array.some()
Array.map()
Array.lastIndexOf()
Array.every()
Array.reduceRight()
Beta Was this translation helpful? Give feedback.
All reactions