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
|
0.0.1 / 2017-02-28
|
||||||
==================
|
==================
|
||||||
* Initial release
|
* Initial release
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue