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
*Change the `className` parameter name to `constructor`.
733
+
*Changes the `Class` type variable name to `Obj`.
734
+
*Changes the `className` parameter name to `constructor` cause it represents [`class`][ts-classes] or [`function`][ts-function] constructor.
735
735
* Fixes type variable `Obj` default value is set to [`Function`][function] by removing it cause it's always being picked from the `constructor` parameter.
736
-
*Removed unnecessary `Constructor` from the return type.
737
-
*Add check `constructor` against the function.
736
+
*Removes unnecessary [`Constructor`][constructor] from the return type.
737
+
*Adds check `constructor` against the [`function`][ts-function].
738
738
739
739
Use `isInstance()` or `is.instance()` to check if **any** value is an `object` of a generic `Obj` type and an instance of [`Constructor`][constructor] type.
|`Obj`|From the `constructor`| A generic variable to the return type `value` is `Obj`|
759
759
760
760
**Parameters:**
761
761
@@ -812,7 +812,7 @@ isInstance(anyInstance, functionConstructor as any); // true
812
812
813
813
![update][update]
814
814
815
-
`4.1.0`: Check only for primitive `string` and `number`.
815
+
`4.1.0`: Checks only for primitive `string` and `number`.
816
816
817
817
Use `isKey()` or `is.key()` to check if **any**`value` is one of the `string`, `number`, or `symbol`.
818
818
@@ -2029,7 +2029,7 @@ if (!is.undefined(config.a)) {
2029
2029
2030
2030
![update][update]
2031
2031
2032
-
`4.1.0`: Added`objectKeys` as [`guardObjectKeys()`](#guardobjectkeys).
2032
+
`4.1.0`: Adds`objectKeys` as [`guardObjectKeys()`](#guardobjectkeys).
2033
2033
2034
2034
The object contains prefixed with `guard` functions in `is` property.
2035
2035
@@ -2314,6 +2314,7 @@ The **return value** is a `boolean` indicating whether or not the `value` is a [
2314
2314
![update][update]
2315
2315
2316
2316
`4.1.0`: Fixes the `value` is not guarded by extending generic type `Obj` variable with `object`.
2317
+
`4.1.1`: Changes the `instance` parameter name to `constructor` cause it represents [`class`][ts-classes] or [`function`][ts-function] constructor.
2317
2318
2318
2319
Use `guardInstance()` or `guard.is.instance()` to guard the `value` to be an `object` of a generic `Obj` type and an `instance` of [`Constructor`][constructor] type.
0 commit comments