@lijuhong1981/jscheck 1.0.12 → 1.0.14

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": "@lijuhong1981/jscheck",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "> TODO: description",
5
5
  "author": "lijuhong1981 <lijuhong@hotmail.com>",
6
6
  "homepage": "https://github.com/lijuhong1981/jslibs#readme",
@@ -18,5 +18,5 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/lijuhong1981/jslibs/issues"
20
20
  },
21
- "gitHead": "8590981da4b7211068302a8f337985338f89c8e0"
21
+ "gitHead": "61a568d529682a0c657b5d130655c293d5dcab58"
22
22
  }
package/src/isNumber.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function isNumber(value) {
2
- return typeof value === 'number';
3
- }
2
+ return !isNaN(value);
3
+ };
4
4
 
5
5
  export default isNumber;
@@ -12,6 +12,6 @@ function isTypedArray(value) {
12
12
  value instanceof BigUint64Array)
13
13
  return true;
14
14
  return false;
15
- }
15
+ };
16
16
 
17
17
  export default isTypedArray;
package/src/isValid.js CHANGED
@@ -1,9 +1,7 @@
1
- import isNumber from "./isNumber.js";
2
-
3
1
  function isValid(value) {
4
- if (value === undefined || value === null || (isNumber(value) && isNaN(value)))
2
+ if (value === undefined || value === null || (typeof value === 'number' && isNaN(value)))
5
3
  return false;
6
4
  return true;
7
- }
5
+ };
8
6
 
9
7
  export default isValid;
File without changes