45 lines
524 B
Markdown
45 lines
524 B
Markdown
![module info](https://nodei.co/npm/es.shim.png?downloads=true&downloadRank=true&stars=true)
|
|
|
|
# es.shim
|
|
> `es.shim` 提供了部分新API, 以及一些常用的扩展方法。具体如下:
|
|
|
|
|
|
+ Obejct
|
|
* empty()
|
|
|
|
|
|
+ Array.prototype
|
|
* flat()
|
|
* flatMap()
|
|
* item()
|
|
|
|
|
|
|
|
+ Date
|
|
* isDate()
|
|
|
|
|
|
+ Date.prototype
|
|
* getFullWeek()
|
|
* getWeek()
|
|
* format()
|
|
|
|
|
|
+ String.prototype
|
|
* splice()
|
|
* htmlspecialchars()
|
|
* tohtml()
|
|
* xss()
|
|
* escape()
|
|
* item()
|
|
|
|
|
|
+ Number
|
|
* parse()
|
|
* fromString()
|
|
|
|
+ Promise
|
|
* defer()
|
|
|
|
|