Functions
Const isArray
- isArray<T, U>(term: U | T[]): term is T[]
Type parameters
Parameters
Returns term is T[]
Const isBigInt
- isBigInt<U>(term: bigint | U): term is bigint
Type parameters
Parameters
Returns term is bigint
Const isBoolean
- isBoolean<U>(term: boolean | U): term is boolean
Type parameters
Parameters
Returns term is boolean
Const isDate
- isDate<U>(term: U | Date): term is Date
Type parameters
Parameters
Returns term is Date
isFalsy
- isFalsy(condition: unknown): condition is Falsy
Parameters
Returns condition is Falsy
Const isFunction
- isFunction<T, U>(term: T | U): term is T
Type parameters
Parameters
Returns term is T
Const isInteger
- isInteger<U>(term: number | U): term is number
Type parameters
Parameters
Returns term is number
isKeyOf
- isKeyOf<T>(object: T): (key: PropertyKey) => key is keyof T
Type parameters
Parameters
Returns (key: PropertyKey) => key is keyof T
- (key: PropertyKey): key is keyof T
Parameters
Returns key is keyof T
Const isMap
- isMap<K, V, U>(term: U | Map<K, V>): term is Map<K, V>
Type parameters
Parameters
Returns term is Map<K, V>
Const isNegativeInteger
- isNegativeInteger<U>(term: number | U): term is number
Type parameters
Parameters
Returns term is number
Const isNonEmptyArray
- isNonEmptyArray<T, U>(term: U | T[]): term is T[]
Type parameters
Parameters
Returns term is T[]
Const isNonEmptyString
- isNonEmptyString<U>(term: string | U): term is string
Type parameters
Parameters
Returns term is string
Const isNonNegativeInteger
- isNonNegativeInteger<U>(term: number | U): term is number
Type parameters
Parameters
Returns term is number
Const isNull
- isNull<T>(term: null | T): term is null
Type parameters
Parameters
Returns term is null
isNullish
- isNullish(value: unknown): value is Nullish
Parameters
Returns value is Nullish
Const isNumber
- isNumber<U>(term: number | U): term is number
Type parameters
Parameters
Returns term is number
Const isNumberOrNaN
- isNumberOrNaN<U>(term: number | U): term is number
Type parameters
Parameters
Returns term is number
Const isObject
- isObject<T, U>(term: T | U): term is NonNullable<T>
Type parameters
Parameters
Returns term is NonNullable<T>
Const isObjectOrNull
- isObjectOrNull<T, U>(term: T | U): term is T
Type parameters
Parameters
Returns term is T
Const isPositiveInteger
- isPositiveInteger<U>(term: number | U): term is number
Type parameters
Parameters
Returns term is number
Const isSet
- isSet<T, U>(term: U | Set<T>): term is Set<T>
Type parameters
Parameters
Returns term is Set<T>
Const isString
- isString<U>(term: string | U): term is string
Type parameters
Parameters
Returns term is string
Const isSymbol
- isSymbol<U>(term: symbol | U): term is symbol
Type parameters
Parameters
Returns term is symbol
isTruthy
- isTruthy<T>(condition: Falsy | T): condition is Exclude<T, Falsy>
Type parameters
Parameters
Returns condition is Exclude<T, Falsy>
Const isUndefined
- isUndefined<T>(term: undefined | T): term is undefined
Type parameters
Parameters
Returns term is undefined
Const isWeakMap
- isWeakMap<K, V, U>(term: U | WeakMap<K, V>): term is WeakMap<K, V>
Type parameters
Parameters
Returns term is WeakMap<K, V>
Const isWeakSet
- isWeakSet<T, U>(term: U | WeakSet<T>): term is WeakSet<T>
Type parameters
Parameters
Returns term is WeakSet<T>