You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,15 @@ Here's the list of core _verifiers_ you can use in Typester:
49
49
50
50
and here's the list of _validating-verifiers_ that come with Typester:
51
51
52
+
*`object()`
52
53
*`number()`
53
54
*`positiveNumber()`
54
55
*`negativeNumber()`
55
56
*`integerNumber()`
56
57
*`nonEmptyString()`
57
58
*`nonEmptyArray()`
58
59
59
-
Validating verifiers are usually some additional check over and above a simple `isA()` invocation. The `number()`verifier is worth mentioning, as it enhances`isA(Number)` by ensuring failure for `NaN`, `NEGATIVE_INFINITY` and `POSITIVE_INFINITY`.
60
+
Validating verifiers are usually some additional check over and above a simple `isA()` invocation. The `object()` and `number()`verifiers are worth mentioning, as these enhance`isA(Object)` and `isA(Number)`respectively. By ensuring that `typeof(object) == true` in the case of `object()`, and by ensuring failure for `NaN`, `NEGATIVE_INFINITY` and `POSITIVE_INFINITY` in the case of `number()`.
0 commit comments