@kizmann/pico-js 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/utility/any.js +2 -2
- package/webservy.json +4 -2
package/package.json
CHANGED
package/src/utility/any.js
CHANGED
@@ -103,7 +103,7 @@ export class Any
|
|
103
103
|
|
104
104
|
static number(val, fallback = NaN)
|
105
105
|
{
|
106
|
-
let res = typeof val.toString === 'undefined' ?
|
106
|
+
let res = ! val || typeof val.toString === 'undefined' ?
|
107
107
|
String(val) : val.toString();
|
108
108
|
|
109
109
|
if ( ! Any.isString(res) ) {
|
@@ -127,7 +127,7 @@ export class Any
|
|
127
127
|
|
128
128
|
static integer(val)
|
129
129
|
{
|
130
|
-
let res = typeof val.toString === 'undefined' ?
|
130
|
+
let res = ! val || typeof val.toString === 'undefined' ?
|
131
131
|
String(val) : val.toString();
|
132
132
|
|
133
133
|
if ( ! Any.isString(res) ) {
|