Skip to content

ereddate/es6-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es6-shim

模拟ES6的部分方法:

Number.[isFinite,isNaN,parseInt,parseFloat,isInteger,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isSafeInteger]

Math.[trunc,sign,cbrt,fround,hypot,expm1,log1p,log10,log2]

Array.[form,of]

Array.prototype.[copyWithin,find,findIndex,fill,includes,keys,values,keys.next,values.next,entries,entries.next]

Function.prototype.[getLength]

String.prototype.[includes,startsWith,endsWith,repeat,padStart,padEnd,append,tag]

另外增加非ES6方法

Array.prototype.[delete,clear,has,insert,each,before,next]

Array.[each]

Object.[each]

Object.prototype.[each]

String.prototype.[format,trim,byteLen]

...

详细使用方法,请查看demo.html。

About

模拟ES6的部分方法

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors