@sniptt/guards
- isArray
- isBigInt
- isBoolean
- isDate
- isFunction
- isInteger
- isMap
- isNegativeInteger
- isNonEmptyArray
- isNonEmptyString
- isNonNegativeInteger
- isNull
- isNumber
- isNumberOrNaN
- isObject
- isObjectOrNull
- isPositiveInteger
- isSet
- isString
- isSymbol
- isUndefined
- isWeakMap
- isWeakSet
▸ Const
isArray<T
, U
>(term
): term is T[]
Name |
---|
T |
U |
Name | Type |
---|---|
term |
U | T [] |
term is T[]
▸ Const
isBigInt<U
>(term
): term is bigint
Name |
---|
U |
Name | Type |
---|---|
term |
bigint | U |
term is bigint
▸ Const
isBoolean<U
>(term
): term is boolean
Name |
---|
U |
Name | Type |
---|---|
term |
boolean | U |
term is boolean
▸ Const
isDate<U
>(term
): term is Date
Name |
---|
U |
Name | Type |
---|---|
term |
U | Date |
term is Date
▸ Const
isFunction<T
, U
>(term
): term is T
Name | Type |
---|---|
T |
extends Function |
U |
U |
Name | Type |
---|---|
term |
T | U |
term is T
▸ Const
isInteger<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ Const
isMap<K
, V
, U
>(term
): term is Map<K, V>
Name |
---|
K |
V |
U |
Name | Type |
---|---|
term |
U | Map <K , V > |
term is Map<K, V>
▸ Const
isNegativeInteger<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ Const
isNonEmptyArray<T
, U
>(term
): term is T[]
Name |
---|
T |
U |
Name | Type |
---|---|
term |
U | T [] |
term is T[]
▸ Const
isNonEmptyString<U
>(term
): term is string
Name |
---|
U |
Name | Type |
---|---|
term |
string | U |
term is string
▸ Const
isNonNegativeInteger<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ Const
isNull<T
>(term
): term is null
Name |
---|
T |
Name | Type |
---|---|
term |
null | T |
term is null
▸ Const
isNumber<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ Const
isNumberOrNaN<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ Const
isObject<T
, U
>(term
): term is NonNullable<T>
Name | Type |
---|---|
T |
extends object |
U |
U |
Name | Type |
---|---|
term |
T | U |
term is NonNullable<T>
▸ Const
isObjectOrNull<T
, U
>(term
): term is T
Name | Type |
---|---|
T |
extends object |
U |
U |
Name | Type |
---|---|
term |
T | U |
term is T
▸ Const
isPositiveInteger<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ Const
isSet<T
, U
>(term
): term is Set<T>
Name |
---|
T |
U |
Name | Type |
---|---|
term |
U | Set <T > |
term is Set<T>
▸ Const
isString<U
>(term
): term is string
Name |
---|
U |
Name | Type |
---|---|
term |
string | U |
term is string
▸ Const
isSymbol<U
>(term
): term is symbol
Name |
---|
U |
Name | Type |
---|---|
term |
symbol | U |
term is symbol
▸ Const
isUndefined<T
>(term
): term is undefined
Name |
---|
T |
Name | Type |
---|---|
term |
undefined | T |
term is undefined
▸ Const
isWeakMap<K
, V
, U
>(term
): term is WeakMap<K, V>
Name | Type |
---|---|
K |
extends object |
V |
V |
U |
U |
Name | Type |
---|---|
term |
U | WeakMap <K , V > |
term is WeakMap<K, V>
▸ Const
isWeakSet<T
, U
>(term
): term is WeakSet<T>
Name | Type |
---|---|
T |
extends object |
U |
U |
Name | Type |
---|---|
term |
U | WeakSet <T > |
term is WeakSet<T>