@hwycdfatm/is-odd 0.0.3 → 0.0.4
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 +3 -3
- package/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ const isOdd = require('@hwycdfatm/is-odd');
|
|
|
19
19
|
|
|
20
20
|
console.log(isOdd(1)); // => true (implemented!)
|
|
21
21
|
console.log(isOdd(2)); // => false (implemented!)
|
|
22
|
-
console.log(isOdd(3)); // =>
|
|
22
|
+
console.log(isOdd(3)); // => true (implemented!)
|
|
23
23
|
console.log(isOdd(5)); // => null (not implemented yet)
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -57,7 +57,7 @@ Checks if the given number is odd.
|
|
|
57
57
|
const isOdd = require('@hwycdfatm/is-odd');
|
|
58
58
|
|
|
59
59
|
console.log(isOdd(1)); // => true
|
|
60
|
-
console.log(isOdd(3)); // =>
|
|
60
|
+
console.log(isOdd(3)); // => true
|
|
61
61
|
console.log(isOdd(NaN)); // => throws TypeError
|
|
62
62
|
console.log(isOdd(Infinity)); // => throws TypeError
|
|
63
63
|
```
|
|
@@ -70,7 +70,7 @@ This package includes TypeScript definitions.
|
|
|
70
70
|
import isOdd = require('@hwycdfatm/is-odd');
|
|
71
71
|
|
|
72
72
|
const result = isOdd(1); // true
|
|
73
|
-
const result2 = isOdd(3); //
|
|
73
|
+
const result2 = isOdd(3); // true
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
## About
|
package/index.js
CHANGED
package/package.json
CHANGED