/mdn-polyfills

MDN polyfills - from, forEach, filter, find, findIndex, assign, includes, create, entries, of, repeat, startsWith, endsWith, toggleAttribute, bind, MouseEvent, CustomEvent, padEnd, padStart

Primary LanguageJavaScript

Polyfills copy-pasted from MDN Build Status npm dependencies

MDN polyfills. A collection of side-effect ECMAScript modules. Minimized, mangled and extremely small thanks to Rollup - next-generation ES6 module bundler.

Installation

npm i mdn-polyfills --save

Polyfills

name usage size [b]
Object.assign import 'mdn-polyfills/Object.assign' 274
Object.create import 'mdn-polyfills/Object.create' 299
Object.entries import 'mdn-polyfills/Object.entries' 151
Array.from import 'mdn-polyfills/Array.from' 788
Array.of import 'mdn-polyfills/Array.of' 79
Array.prototype.find import 'mdn-polyfills/Array.prototype.find' 330
Array.prototype.forEach import 'mdn-polyfills/Array.prototype.forEach' 328
Array.prototype.filter import 'mdn-polyfills/Array.prototype.filter' 300
Array.prototype.findIndex import 'mdn-polyfills/Array.prototype.findIndex' 362
Array.prototype.includes import 'mdn-polyfills/Array.prototype.includes' 346
Array.prototype.some import 'mdn-polyfills/Array.prototype.some' 346
String.prototype.includes import 'mdn-polyfills/String.prototype.includes' 153
String.prototype.repeat import 'mdn-polyfills/String.prototype.repeat' 504
String.prototype.startsWith import 'mdn-polyfills/String.prototype.startsWith' 117
String.prototype.endsWith import 'mdn-polyfills/String.prototype.endsWith' 148
String.prototype.padStart import 'mdn-polyfills/String.prototype.padStart' 209
String.prototype.padEnd import 'mdn-polyfills/String.prototype.padEnd' 205
Function.prototype.bind import 'mdn-polyfills/Function.prototype.bind' 427
Node.prototype.append import 'mdn-polyfills/Node.prototype.append' 433
Node.prototype.prepend import 'mdn-polyfills/Node.prototype.prepend' 452
Node.prototype.before import 'mdn-polyfills/Node.prototype.before' 440
Node.prototype.after import 'mdn-polyfills/Node.prototype.after' 461
Node.prototype.remove import 'mdn-polyfills/Node.prototype.remove' 290
Node.prototype.replaceWith import 'mdn-polyfills/Node.prototype.replaceWith' 731
Node.prototype.children import 'mdn-polyfills/Node.prototype.children' 245
NodeList.prototype.forEach import 'mdn-polyfills/NodeList.prototype.forEach' 158
Element.prototype.closest import 'mdn-polyfills/Element.prototype.closest' 386
Element.prototype.toggleAttribute import 'mdn-polyfills/Element.prototype.toggleAttribute' 243
Element.prototype.matches import 'mdn-polyfills/Element.prototype.matches' 133
MouseEvent import 'mdn-polyfills/MouseEvent' 281
CustomEvent import 'mdn-polyfills/CustomEvent' 279
Number.isNaN import 'mdn-polyfills/Number.isNaN' 53

License

The mdn-polyfills as a module is licensed under MIT © Michał Jezierski
Polyfills are licensed under https://developer.mozilla.org/en-US/docs/MDN/About#Copyrights_and_licenses