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
* a `boolean` type not an instance of [`Boolean`][boolean] and [`Object`][object], and equal to `true` or `false` with [`isBooleanType()`](#isbooleantype).
106
106
* a `function` with [`isFunction()`](#isfunction).
107
107
* a generic type `instance` with [`isInstance()`](#isinstance).
108
-
* a [`Key`](#key) type with [`isKey()`](#iskey).
108
+
* a [`Key`][key] type with [`isKey()`](#iskey).
109
109
* a `null` with [`isNull()`](#isnull).
110
110
* a `number` with [`isNumber()`](#isnumber).
111
111
* an `object` type and instance of [`Number`][Number] and [`Object`][object] with [`isNumberObject()`](#isnumberobject).
112
112
* a `number` type and **not** instance of [`Number`][Number] and [`Object`][object] with [`isNumberType()`](#isnumbertype).
113
113
* a generic type `object` with [`isObject()`](#isobject).
114
-
* an `object` with its own specified [`Key`](#key) with [`isObjectKey()`](#isobjectkey).
114
+
* an `object` with its own specified [`Key`][key] with [`isObjectKey()`](#isobjectkey).
115
115
* a one of the primitive `boolean`, `bigint`, `number`, `string` with [`isPrimitive()`](#isPrimitive).
116
116
* a `string` with [`isString()`](#isstring).
117
117
* an `object` type and instance of [`String`][string] and [`Object`][object] with [`isStringObject()`](#isstringobject).
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
551
551
552
-
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`](#key).
552
+
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`][key].
553
553
554
554
```typescript
555
555
// Example usage
@@ -740,7 +740,7 @@ const isObject: IsObject = <Obj = object>(value: any, key?: Key): value is Obj =
740
740
| Parameter | Type | Description |
741
741
| :-------- | :-----------: | :---------- |
742
742
| value |`any`| Any `value` to check |
743
-
| key? |[`Key`](#key)| Property name to find in the `value`|
743
+
| key? |[`Key`][key]| Property name to find in the `value`|
744
744
745
745
The **return value** is a `boolean` indicating whether or not the `value` is an `object`.
| value |`any`| Any `value` to check if it contains a specified `key`|
851
-
| key |[`Key`](#key)\|[`Key`](#key)[]| A [`Key`](#key) type or an array of [`Key`](#key) type to check in the `value`|
851
+
| key |[`Key`][key]\|[`Key`][key][]| A [`Key`][key] type or an array of [`Key`][key] type to check in the `value`|
852
852
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
853
853
854
854
The **return value** is a `boolean` indicating whether or not the `value` is an `object` with its own specified keys.
@@ -1315,10 +1315,10 @@ const guardKey: GuardKey = (value: Key, callback?: ResultCallback): value is Key
| value |[`Key`](#key)| A [`Key`](#key) type `value` to guard |
1318
+
| value |[`Key`][key]| A [`Key`][key] type `value` to guard |
1319
1319
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1320
1320
1321
-
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`](#key).
1321
+
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`][key].
1322
1322
1323
1323
----
1324
1324
@@ -1380,7 +1380,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1380
1380
1381
1381
### guardObjectKey
1382
1382
1383
-
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key` property of the [`Key`](#key) type.
1383
+
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key` property of the [`Key`][key] type.
* a `boolean` type not an instance of [`Boolean`][boolean] and [`Object`][object], and equal to `true` or `false` with [`isBooleanType()`](#isbooleantype).
106
106
* a `function` with [`isFunction()`](#isfunction).
107
107
* a generic type `instance` with [`isInstance()`](#isinstance).
108
-
* a [`Key`](#Key) type with [`isKey()`](#iskey).
108
+
* a [`Key`][key] type with [`isKey()`](#iskey).
109
109
* a `null` with [`isNull()`](#isnull).
110
110
* a `number` with [`isNumber()`](#isnumber).
111
111
* an `object` type and instance of [`Number`][Number] and [`Object`][object] with [`isNumberObject()`](#isnumberobject).
112
112
* a `number` type and **not** instance of [`Number`][Number] and [`Object`][object] with [`isNumberType()`](#isnumbertype).
113
113
* a generic type `object` with [`isObject()`](#isobject).
114
-
* an `object` with its own specified [`Key`](#Key) with [`isObjectKey()`](#isobjectkey).
114
+
* an `object` with its own specified [`Key`][key] with [`isObjectKey()`](#isobjectkey).
115
115
* a one of the primitive `boolean`, `bigint`, `number`, `string` with [`isPrimitive()`](#isPrimitive).
116
116
* a `string` with [`isString()`](#isstring).
117
117
* an `object` type and instance of [`String`][string] and [`Object`][object] with [`isStringObject()`](#isstringobject).
* a [`Func`](#func) type with [`guardFunction()`](#guardfunction).
136
136
* an instance with [`guardInstance()`](#guardinstance).
137
137
* a `null` with [`guardNull()`](#guardnull).
138
-
* a [`Key`](#Key) with [`guardKey()`](#guardkey).
138
+
* a [`Key`][key] with [`guardKey()`](#guardkey).
139
139
* a `number` with [`guardNumber()`](#guardnumber).
140
140
* an `object` of a generic type with [`guardObject()`](#guardobject).
141
141
* an `object` of a generic type that contains `key` with [`guardObjectKey()`](#guardobjectkey).
@@ -258,7 +258,7 @@ const is: Is = {
258
258
defined: isDefined,
259
259
function: isFunction,
260
260
instance: isInstance,
261
-
key: isKey,
261
+
key: iskey,
262
262
not: isNot,
263
263
null: isNull,
264
264
number: isNumber,
@@ -493,7 +493,7 @@ isFunction(() => 5); // true
493
493
494
494
### isInstance
495
495
496
-
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#Constructor) type.
496
+
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#constructor) type.
| value |`any`| Any `value` to compare with the `instance`|
516
-
| instance |[`Constructor<Obj>`](#Constructor)| A generic `Obj`[`Constructor`](#Constructor) type to create an `instance` to compare with the `value`|
516
+
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor`](#constructor) type to create an `instance` to compare with the `value`|
517
517
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
518
518
519
519
The **return value** is a `boolean` indicating whether or not the `value` is an `instance` of a generic `Obj`.
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
551
551
552
-
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`](#Key).
552
+
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`][key].
553
553
554
554
```typescript
555
555
// Example usage
@@ -740,7 +740,7 @@ const isObject: IsObject = <Obj = object>(value: any, key?: Key): value is Obj =
740
740
| Parameter | Type | Description |
741
741
| :-------- | :-----------: | :---------- |
742
742
| value |`any`| Any `value` to check |
743
-
| key? |[`Key`](#Key)| Property name to find in the `value`|
743
+
| key? |[`Key`][key]| Property name to find in the `value`|
744
744
745
745
The **return value** is a `boolean` indicating whether or not the `value` is an `object`.
| value |`any`| Any `value` to check if it contains a specified `key`|
851
-
| key |[`Key`](#key)\|[`Key`](#Key)[]| A [`Key`](#Key) type or an array of [`Key`](#Key) type to check in the `value`|
851
+
| key |[`Key`][key]\|[`Key`][key][]| A [`Key`][key] type or an array of [`Key`][key] type to check in the `value`|
852
852
| callback |[`ResultCallback`][resultcallback]=[`resultCallback`][callback]|[`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
853
853
854
854
The **return value** is a `boolean` indicating whether or not the `value` is an `object` with its own specified keys.
@@ -1267,7 +1267,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a `
1267
1267
1268
1268
### guardFunction
1269
1269
1270
-
Use `guardFunction()` or `guard.is.function()` to guard the `value` to be a [`Func`](#Func) type.
1270
+
Use `guardFunction()` or `guard.is.function()` to guard the `value` to be a [`Func`](#func) type.
| value |[`Func`](#Func)| A [`Func`](#Func) type `value` to guard |
1279
+
| value |[`Func`](#func)| A [`Func`](#func) type `value` to guard |
1280
1280
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1281
1281
1282
-
The return value is a `boolean` indicating whether or not the `value` is a [`Func`](#Func).
1282
+
The return value is a `boolean` indicating whether or not the `value` is a [`Func`](#func).
1283
1283
1284
1284
[Example usage on playground][guard-function]
1285
1285
1286
1286
----
1287
1287
1288
1288
### guardInstance
1289
1289
1290
-
Use `guardInstance()` or `guard.is.instance()` to guard the `value` to be an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#Constructor) type.
1290
+
Use `guardInstance()` or `guard.is.instance()` to guard the `value` to be an `object` of a generic `Obj` type equal to an `instance` of [`Constructor`](#constructor) type.
| value |`Obj`| An `Obj` type `value` to compare with the `instance`|
1300
-
| instance |[`Constructor<Obj>`](#Constructor)| A generic `Obj`[`Constructor`](#Constructor) type to create an `instance` to compare with the `value`|
1300
+
| instance |[`Constructor<Obj>`](#constructor)| A generic `Obj`[`Constructor`](#constructor) type to create an `instance` to compare with the `value`|
1301
1301
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1302
1302
1303
1303
The **return value** is a `boolean` indicating whether or not the `value` is an `instance` of a generic `Obj`.
@@ -1315,10 +1315,10 @@ const guardKey: GuardKey = (value: Key, callback?: ResultCallback): value is Key
| value |[`Key`](#Key)| A [`Key`](#Key) type `value` to guard |
1318
+
| value |[`Key`][key]| A [`Key`][key] type `value` to guard |
1319
1319
| callback? |[`ResultCallback`][resultcallback]| Optional [`ResultCallback`][resultcallback] function to handle result before returns eg. to throw an `Error`|
1320
1320
1321
-
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`](#Key).
1321
+
The **return value** is a `boolean` indicating whether or not the `value` is a [`Key`][key].
1322
1322
1323
1323
----
1324
1324
@@ -1380,7 +1380,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is an
1380
1380
1381
1381
### guardObjectKey
1382
1382
1383
-
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key` property of the [`Key`](#Key) type.
1383
+
Use `guardObjectKey()` or `guard.is.objectKey()` to guard the `value` to be an `object` of a generic `Obj` type that contains the `key` property of the [`Key`][key] type.
0 commit comments