update
parent
c4b40bcb08
commit
4f9c6ef8c9
|
@ -16,8 +16,12 @@ if (!Number.parse) {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
val += ''
|
val += ''
|
||||||
if (val.startsWith(0) && !val.startsWith('0.')) {
|
if (val.startsWith('0') && !val.startsWith('0.')) {
|
||||||
|
if (val === '0') {
|
||||||
|
return 0
|
||||||
|
} else {
|
||||||
return val
|
return val
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isFinite(val)) {
|
if (isFinite(val)) {
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "es.shim",
|
"name": "es.shim",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"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