@sniptt/guards / structural
▸ Const
isArray<T
, U
>(term
): term is T[]
Name |
---|
T |
U |
Name | Type |
---|---|
term |
U | T [] |
term is T[]
▸ 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
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
isNull<T
>(term
): term is null
Name |
---|
T |
Name | Type |
---|---|
term |
null | T |
term is null
▸ 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
isSet<T
, U
>(term
): term is Set<T>
Name |
---|
T |
U |
Name | Type |
---|---|
term |
U | Set <T > |
term is Set<T>
▸ 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>