@sniptt/guards / convenience
- isInteger
- isNegativeInteger
- isNonEmptyArray
- isNonEmptyString
- isNonNegativeInteger
- isNumberOrNaN
- isObjectOrNull
- isPositiveInteger
▸ Const
isInteger<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ 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
isNumberOrNaN<U
>(term
): term is number
Name |
---|
U |
Name | Type |
---|---|
term |
number | U |
term is number
▸ 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