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
| value |`Type`| A generic type `value` to guard |
1712
+
| callback? |[`ResultCallback`][resultcallback]| An Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1713
+
1714
+
The **return value** is A `boolean` indicating whether or not the `value` is defined, if `undefined` then returns `never`.
1715
+
1716
+
----
1717
+
1695
1718
### guardFunction
1696
1719
1697
1720
![update][update]
@@ -1969,6 +1992,12 @@ type AnyString = string | String;
| value |`Type`| A generic type `value` to guard |
1712
+
| callback? |[`ResultCallback`][resultcallback]| An Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1713
+
1714
+
The **return value** is A `boolean` indicating whether or not the `value` is defined, if `undefined` then returns `never`.
1715
+
1716
+
----
1717
+
1695
1718
### guardFunction
1696
1719
1697
1720
![update][update]
@@ -1969,6 +1992,12 @@ type AnyString = string | String;
0 commit comments