[go: up one dir, main page]

Skip to content

behnammodi/polyfill

Repository files navigation

Set of all Javascript polyfills

Help us to be best

Backers

Polyfill includes:

Array, Date, Element, Function, Math, Number, String, Uint8Array and Window

NPM

⚠️ We don't have any package in NPM!

Array Polyfill:

Array.from;
Array.isArray;
Array.of;
Array.prototype.at;
Array.prototype.copyWithin;
Array.prototype.entries;
Array.prototype.every;
Array.prototype.fill;
Array.prototype.filter;
Array.prototype.find;
Array.prototype.findIndex;
Array.prototype.flat;
Array.prototype.flatMap;
Array.prototype.forEach;
Array.prototype.includes;
Array.prototype.indexOf;
Array.prototype.keys;
Array.prototype.lastIndexOf;
Array.prototype.map;
Array.prototype.reduce;
Array.prototype.reduceRight;
Array.prototype.some;
Array.prototype.toLocaleString;
Array.prototype.values;

Date Polyfill:

Date.prototype.toISOString;

Function Polyfill:

Function.prototype.name;

Math Polyfill:

Math.sign;
Math.trunc;

Number Polyfill:

Number.isInteger;

String Polyfill:

String.fromCodePoint;
String.prototype.at;
String.prototype.codePointAt;
String.prototype.endsWith;
String.prototype.includes;
String.prototype.padEnd;
String.prototype.padStart;
String.prototype.repeat;
String.prototype.startsWith;
String.prototype.trim;

Uint8Array Polyfill:

Uint8Array.prototype.at;

window Polyfill:

window.requestIdleCallback;
window.cancelIdleCallback;
window.requestAnimationFrame;
window.cancelAnimationFrame;

Backers

Backers