Optimise String extend function.

master
宇天 2017-03-17 20:12:45 +08:00
parent d9b9ffe031
commit 09b11fd3e6
3 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
0.0.3 / 2017-03-17
==================
* Optimise String extend function.
0.0.1 / 2017-02-28 0.0.1 / 2017-02-28
================== ==================
* Initial release * Initial release

View File

@ -36,8 +36,8 @@ if(!String.prototype.splice){
}else{ }else{
len -= 0; len -= 0;
let strl = this.slice(0, start) let strl = this.slice(0, start),
let strr = this.slice(start + len) strr = this.slice(start + len);
return strl + fill + strr return strl + fill + strr
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "es.shim", "name": "es.shim",
"version": "0.0.2", "version": "0.0.3",
"description": "Some shim api that let you can use in all node.js environment", "description": "Some shim api that let you can use in all node.js environment",
"keyworks": [ "keyworks": [
"es5", "es5",