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
+24-25Lines changed: 24 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,29 +140,35 @@ Checks if **any** value is
140
140
* an [`Array`][js-array] of any type with [`isArray()`](#isarray).
141
141
* a `bigint` with [`isBigInt()`](#isbigint).
142
142
* a `boolean` with [`isBoolean()`](#isboolean).
143
-
* an `object`type and instance of [`Boolean`][boolean] and [`Object`][js-object] with [`isBooleanObject()`](#isbooleanobject).
144
-
* a `boolean` type not an instance of [`Boolean`][boolean] and [`Object`][js-object], and equal to `true` or `false` with [`isBooleanType()`](#isbooleantype).
143
+
* an `object`type and instance of [`Boolean`][js-boolean] and [`Object`][js-object] with [`isBooleanObject()`](#isbooleanobject).
144
+
* a `boolean` type not an instance of [`Boolean`][js-boolean] and [`Object`][js-object], and equal to `true` or `false` with [`isBooleanType()`](#isbooleantype).
145
145
* a `class` with [`isClass()`](#isclass).
146
+
* a [`Date`][js-date] with [`isDate()`](#isdate).
147
+
* defined with [`isDefined()`](#isdefined).
148
+
*`false` with [`isFalse()`](#isfalse).
146
149
* a `function` with [`isFunction()`](#isfunction).
147
150
* a generic type `instance` with [`isInstance()`](#isinstance).
148
151
* a [`Key`][key] type with [`isKey()`](#iskey).
149
152
* a `null` with [`isNull()`](#isnull).
150
153
* a `number` with [`isNumber()`](#isnumber).
154
+
* a `number` between the specified range with [`isNumberBetween()`](#isnumberbetween).
151
155
* an `object` type and instance of [`Number`][js-number] and [`Object`][js-object] with [`isNumberObject()`](#isnumberobject).
152
156
* a `number` type and **not** instance of [`Number`][js-number] and [`Object`][js-object] with [`isNumberType()`](#isnumbertype).
153
157
* a generic type `object` with [`isObject()`](#isobject).
154
158
* an `object` with its own specified [`Key`][key] with [`isObjectKey()`](#isobjectkey).
155
159
* an `object` with the [`Key`][key] by using the [`in`][js-in-operator] operator with [`isObjectKeyIn()`](#isobjectkeyin).
156
160
* an `object` with some of its own specified [`Key`][key] with [`isObjectKeys()`](#isobjectkeys).
157
-
* a one of the primitive `boolean`, `bigint`, `number`, `string` with [`isPrimitive()`](#isPrimitive).
161
+
* a one of the primitive `boolean`, `bigint`, `number`, `string` with [`isPrimitive()`](#isprimitive).
162
+
* a regular expression of a `RegExp` type with [`isRegExp()`](#isregexp).
158
163
* a `string` with [`isString()`](#isstring).
164
+
* a `string` with the specified length with [`isStringLength`](#isstringlength).
159
165
* an `object` type and instance of [`String`][js-string] and [`Object`][js-object] with [`isStringObject()`](#isstringobject).
160
166
* a `string` type and **not** instance of [`String`][js-string] and [`Object`][js-object] with [`isStringType()`](#isstringtype).
161
-
* a `symbol` with [`isSymbol()`](#isSymbol).
167
+
* a `symbol` with [`isSymbol()`](#issymbol).
168
+
*`true` with [`isTrue()`](#istrue).
162
169
* a generic type instance, `function`, `object` or primitive type with [`isType()`](#istype).
163
170
* a `undefined` with [`isUndefined()`](#isundefined).
164
171
* a generic type value is
165
-
* defined with [`isDefined()`](#isdefined).
166
172
***not**
167
173
* a `boolean` with [`isNotBoolean()`](#isnotboolean)
168
174
* a `function` with [`isNotFunction()`](#isnotfunction)
@@ -209,12 +215,6 @@ Guard
209
215
*[Skeleton](#skeleton)
210
216
*[Callback](#callback)
211
217
*[Check](#check)
212
-
* Function
213
-
*[`typeOf()`](#typeof)
214
-
* Object
215
-
*[`are`](#are)
216
-
*[`is`](#is)
217
-
*[`isNot`](#isnot)
218
218
*[Guard](#guard)
219
219
*[Common types](#common-types)
220
220
*[Experimental](#experimental)
@@ -502,7 +502,7 @@ isBigInt(BIGINT); // true
502
502
503
503
### `isBoolean()`
504
504
505
-
Use `isBoolean()` or `is.boolean()` to check if **any**`value` is a `boolean` type not instance of [`Boolean`][boolean] and [`Object`][js-object] or `object` type instance of [`Boolean`][boolean] and [`Object`][js-object].
505
+
Use `isBoolean()` or `is.boolean()` to check if **any**`value` is a `boolean` type not instance of [`Boolean`][js-boolean] and [`Object`][js-object] or `object` type instance of [`Boolean`][js-boolean] and [`Object`][js-object].
Use `isBooleanObject()` or `is.booleanObject()` to check if **any**`value` is an `object` type and instance of [`Boolean`][boolean] and [`Object`][js-object].
554
+
Use `isBooleanObject()` or `is.booleanObject()` to check if **any**`value` is an `object` type and instance of [`Boolean`][js-boolean] and [`Object`][js-object].
Use `isBooleanType()` or `is.booleanType()` to check if **any**`value` is a `boolean` type not an instance of [`Boolean`][boolean] and [`Object`][js-object], and equal to `true` or `false`.
601
+
Use `isBooleanType()` or `is.booleanType()` to check if **any**`value` is a `boolean` type not an instance of [`Boolean`][js-boolean] and [`Object`][js-object], and equal to `true` or `false`.
602
602
603
603
```typescript
604
604
const isBooleanType:IsBooleanType= (
@@ -2290,7 +2290,7 @@ const isNot: IsNot = {
2290
2290
2291
2291
### `isNotBoolean()`
2292
2292
2293
-
Use `isNotBoolean()` or `is.not.boolean()` to check if a generic `Type``value` is **not** a `boolean` type and **not** an instance of a [`Boolean`][boolean].
2293
+
Use `isNotBoolean()` or `is.not.boolean()` to check if a generic `Type``value` is **not** a `boolean` type and **not** an instance of a [`Boolean`][js-boolean].
|`value is Never<AnyBoolean, Type>`|`boolean`| By default `Type` variable is equal to the type detected from the `value`, but the detected type `boolean` or [`Boolean`][boolean] changes to `never` and the **return type** is a `boolean` as the result of its statement `value` is **never** of [`AnyBoolean`](#anyboolean) type but of type detected from the `value`|
2325
+
|`value is Never<AnyBoolean, Type>`|`boolean`| By default `Type` variable is equal to the type detected from the `value`, but the detected type `boolean` or [`Boolean`][js-boolean] changes to `never` and the **return type** is a `boolean` as the result of its statement `value` is **never** of [`AnyBoolean`](#anyboolean) type but of type detected from the `value`|
2326
2326
2327
-
The **return value** is a `boolean` indicating whether or not the `value` is not a `boolean` and [`Boolean`][boolean] instance.
2327
+
The **return value** is a `boolean` indicating whether or not the `value` is not a `boolean` and [`Boolean`][js-boolean] instance.
|`value is B`|`boolean`| By default `B` variable is equal to the type detected from the `value` and the **return type** is a `boolean` as the result of its statement indicating the `value` is of [`AnyBoolean`](#anyboolean) type detected from the `value`|
2804
2804
2805
-
The **return value** is a `boolean` indicating whether or not the `value` is a `boolean` type or [`Boolean`][boolean] instance.
2805
+
The **return value** is a `boolean` indicating whether or not the `value` is a `boolean` type or [`Boolean`][js-boolean] instance.
0 commit comments