Optimise String extend function.
parent
d9b9ffe031
commit
09b11fd3e6
|
@ -1,3 +1,7 @@
|
|||
0.0.3 / 2017-03-17
|
||||
==================
|
||||
* Optimise String extend function.
|
||||
|
||||
0.0.1 / 2017-02-28
|
||||
==================
|
||||
* Initial release
|
|
@ -36,8 +36,8 @@ if(!String.prototype.splice){
|
|||
}else{
|
||||
len -= 0;
|
||||
|
||||
let strl = this.slice(0, start)
|
||||
let strr = this.slice(start + len)
|
||||
let strl = this.slice(0, start),
|
||||
strr = this.slice(start + len);
|
||||
|
||||
return strl + fill + strr
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"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",
|
||||
"keyworks": [
|
||||
"es5",
|
||||
|
|
Loading…
Reference in New Issue