4 ms·
That's what I'd do in an application, but it's bad manners to modify the global Array.prototype from a library, or to expect your parent application to provide
by alangpierce 9y ago
That's what I'd do in an application, but it's bad manners to modify the global Array.prototype from a library, or to expect your parent application to provide such a polyfill, so usually it's best to just avoid polyfills in open source libraries.