mazey 4.0.0 → 4.0.1
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/README.md +5 -7
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/mazey.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,12 +38,10 @@ Import from [npm](https://www.npmjs.com/package/mazey).
|
|
|
38
38
|
import { isNumber } from 'mazey';
|
|
39
39
|
|
|
40
40
|
const x = 123;
|
|
41
|
-
isNumber(x); // <=> typeof x === 'number' && !isNaN(x) && isFinite(x)
|
|
42
|
-
// Output: true
|
|
43
|
-
|
|
44
41
|
const y = Infinity;
|
|
45
|
-
|
|
46
|
-
// Output:
|
|
42
|
+
// <=> typeof x === 'number' && !isNaN(x) && isFinite(x)
|
|
43
|
+
isNumber(x); // Output: true
|
|
44
|
+
isNumber(y); // Output: false
|
|
47
45
|
```
|
|
48
46
|
|
|
49
47
|
Import from CDN.
|
|
@@ -52,8 +50,8 @@ Import from CDN.
|
|
|
52
50
|
<script type="text/javascript" src="//i.mazey.net/mazey/lib/mazey.min.js"></script>
|
|
53
51
|
<script>
|
|
54
52
|
const x = Infinity;
|
|
55
|
-
|
|
56
|
-
// Output: true
|
|
53
|
+
// <=> typeof x === 'string' && !isNaN(x)
|
|
54
|
+
mazey.isNumber(x, { isInfinityAsNumber: true }); // Output: true
|
|
57
55
|
</script>
|
|
58
56
|
```
|
|
59
57
|
|
package/lib/index.cjs.js
CHANGED
package/lib/index.esm.js
CHANGED
package/lib/mazey.min.js
CHANGED