master
宇天 2018-06-29 20:01:44 +08:00
parent 32d0841e60
commit c4b40bcb08
3 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
1.1.0 / 2018-06-29
1.1.1 / 2018-06-29
==================
* add Number.parse

View File

@ -12,6 +12,9 @@
if (!Number.parse) {
Object.defineProperty(Number, 'parse', {
value: function(val) {
if (typeof val !== 'number' && typeof val !== 'string') {
return val
}
val += ''
if (val.startsWith(0) && !val.startsWith('0.')) {
return val

View File

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