Simpleness ES5,6 shim for client javascript.
You can use some ES5 or ES6 features in old browsers,like Promise JSON Array.prototype.forEach String.prototyp.repeat etc.
ES5-shim,ES6-shim are can't decomposed and complicated.
ES-shim is decomposed and simpler and more applied to actual projects.
<script src="es.js"></script>
<script src="array.js"></script> <!-- The Array's ES5,6 features are availabled -->Array.fromArray.ofArray.prototype.copyWithinArray.prototype.fillArray.prototype.findArray.prototype.findIndexArray.prototype.keysArray.prototype.entriesArray.prototype.valuesArray.isArrayArray.prototype.everyArray.prototype.filterArray.prototype.forEachArray.prototype.indexOfArray.prototype.lastIndexOfArray.prototype.mapArray.prototype.someArray.prototype.reduceArray.prototype.reduceRightArray.prototype.unshiftfix bug
Boolean.prototype.toJSON
Date.nowDate.toISOStringDate.toJSON
Function.prototype.bind
Math.acoshMath.asinhMath.atanhMath.cbrtMath.clz32Math.coshMath.expm1Math.hypotMath.log2Math.log10Math.log1pMath.signMath.sinhMath.tanhMath.truncMath.imulMath.froundMath.roundfix bug
Number.prototype.toJSONNumber.prototype.toFixedfix bugNumber.MAX_SAFE_INTEGERNumber.MIN_SAFE_INTEGERNumber.EPSILONNumber.parseIntNumber.parseFloatNumber.isFiniteNumber.isNaNNumber.isIntegerNumber.isSafeInteger
Regexp.prototype.flagsfunction shim,not attributes
Object.keysObject.createObject.defineProperty
defineProperty and create is not a standard implementation,just a basic function imitation.
Object.isObject.assign
String.prototype.trimString.prototype.toJSONString.fromCodePointString.rawString.prototype.codePointAtString.prototype.repeatString.prototype.startsWithString.prototype.endsWithString.prototype.includes
Promise.prototype.catchPromise.prototype.thenPromise.rejectPromise.resolvePromise.racePromise.all
JSON.parseJSON.stringify
MIT License