@fastcar/core 0.2.63 → 0.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastcar/core",
3
- "version": "0.2.63",
3
+ "version": "0.2.64",
4
4
  "homepage": "https://github.com/williamDazhangyu/fast-car",
5
5
  "main": "target/index.js",
6
6
  "author": "william_zhong",
@@ -30,7 +30,7 @@ export default class ValidationUtil {
30
30
 
31
31
  //修改数字的判断方法
32
32
  static isNumber(param: any): boolean {
33
- return !isNaN(param);
33
+ return ValidationUtil.isNotNull(param) && !isNaN(param);
34
34
  }
35
35
 
36
36
  static isString(param: any): boolean {
@@ -26,7 +26,7 @@ class ValidationUtil {
26
26
  }
27
27
  //修改数字的判断方法
28
28
  static isNumber(param) {
29
- return !isNaN(param);
29
+ return ValidationUtil.isNotNull(param) && !isNaN(param);
30
30
  }
31
31
  static isString(param) {
32
32
  return typeof param === "string";