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
| callback |[`ResultCallback`][resultcallback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1232
1232
1233
-
The **return value** is a `boolean` indicating whether or not the `value` is a `string`.
1233
+
The **return value** is a `boolean` indicating whether or not the `value` is a `string` type or [`String`][string] object.
1234
1234
1235
1235
----
1236
1236
@@ -1239,7 +1239,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a `
1239
1239
Use `isStringObject()` or `is.stringObject()` to check if **any**`value` is an `object` type and instance of [`String`][string] and [`Object`][object].
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1268
1268
1269
-
The **return value** is a `boolean` indicating whether or not the `value` is a `string`.
1269
+
The **return value** is a `boolean` indicating whether or not the `value` is a `string` type.
1270
1270
1271
1271
----
1272
1272
@@ -1296,7 +1296,7 @@ Use `isType()` or `is.type()` to check if **any** `value` is the [`Type`](#type)
| value |`Array<Type>`| A generic `Type``Array``value` to guard |
1579
1579
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1580
1580
1581
1581
The **return value** is a `boolean` indicating whether or not the `value` is an [`Array`][array] of a generic `Type`.
| value |`bigint`| A `bigint` type `value` to guard |
1599
-
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1599
+
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1600
1600
1601
1601
The **return value** is a `boolean` indicating whether or not the `value` is a `bigint`.
1602
1602
1603
1603
----
1604
1604
1605
1605
### guardBoolean
1606
1606
1607
-
Use `guardBoolean()` or `guard.is.boolean()` to guard the `value` to be a `boolean`.
1607
+
Use `guardBoolean()` or `guard.is.boolean()` to guard the `value` to be any type of a boolean.
| value |`boolean`| A `boolean` type `value` to guard |
1617
-
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
| value |`B` extends [`AnyBoolean`](#anyboolean)| An [`AnyBoolean`](#anyboolean) type `value` to guard |
1617
+
| callback? |[`ResultCallback`][resultcallback]| An Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1618
1618
1619
-
The **return value** is a `boolean` indicating whether or not the `value` is a `boolean`.
1619
+
The **return value** is a `boolean` indicating whether or not the `value` is a `boolean` type or [`Boolean`][boolean] object.
| value |[`Func`](#func)| A [`Func`](#func) type `value` to guard |
1635
1635
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1636
1636
1637
1637
The **return value** is a `boolean` indicating whether or not the `value` is a [`Func`](#func).
| value |`Obj`| An `Obj` type `value` to compare with the `instance`|
1655
+
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor`](#constructor) type to create an `instance` to compare with the `value`|
1656
1656
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1657
1657
1658
1658
The **return value** is a `boolean` indicating whether or not the `value` is an `instance` of a generic `Obj`.
@@ -1668,8 +1668,8 @@ const guardKey: GuardKey = (value: Key, callback?: ResultCallback): value is Key
| value |[`Key`][key]| A [`Key`][key] type `value` to guard |
1674
1674
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1675
1675
@@ -1686,9 +1686,9 @@ const guardNull: GuardNull = (value: null, callback?: ResultCallback): value is
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1693
1693
1694
1694
The **return value** is a `boolean` indicating whether or not the `value` is a `null`.
@@ -1697,19 +1697,19 @@ The **return value** is a `boolean` indicating whether or not the `value` is a `
1697
1697
1698
1698
### guardNumber
1699
1699
1700
-
Use `guardNumber()` or `guard.is.number()` to guard the `value` to be a `number`.
1700
+
Use `guardNumber()` or `guard.is.number()` to guard the `value` to be any type of a number.
| value |`number`| A `number` type `value` to guard.|
1710
-
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
| value |`N` extends [`AnyNumber`](#anynumber)| An `AnyNumber` type `value` to guard |
1710
+
| callback? |[`ResultCallback`][resultcallback]| An Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1711
1711
1712
-
The **return value** is a `boolean` indicating whether or not the `value` is a `number`.
1712
+
The **return value** is a `boolean` indicating whether or not the `value` is a `number` type or [`Number`][number] object.
1713
1713
1714
1714
[Example usage on playground][guard-number]
1715
1715
@@ -1777,19 +1777,19 @@ The **return value** is a `boolean` indicating whether or not the `value` is the
1777
1777
1778
1778
### guardString
1779
1779
1780
-
Use `guardString()` or `guard.is.string()` to guard the `value` to be a `string`.
1780
+
Use `guardString()` or `guard.is.string()` to guard the `value` to be any type of a string.
| value |`string`| A `string` type `value` to guard |
1790
-
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
| value |`S` extends [`AnyString`](#anystring)| An `AnyString` type `value` to guard |
1790
+
| callback? |[`ResultCallback`][resultcallback]| An Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1791
1791
1792
-
The **return value** is a `boolean` indicating whether or not the `value` is a `string`.
1792
+
The **return value** is a `boolean` indicating whether or not the `value` is a `string` type or [`String`][string] object.
0 commit comments