Utils: `empty`
Table of contents
Functions
Functions
isEmpty
▸ isEmpty<T
>(val?
): val is undefined
Check if an input is empty, similar to lodash.isEmpty
Type parameters
Name |
---|
T |
Parameters
Name | Type | |
---|---|---|
val? | null \ | T |
Returns
val is undefined
Defined in
packages/utils/src/empty.ts:13
isNil
▸ isNil<T
>(input
): input is Nil
Type parameters
Name |
---|
T |
Parameters
Name | Type | |
---|---|---|
input | T \ | Nil |
Returns
input is Nil
Defined in
isNotNil
▸ isNotNil<T
>(input
): boolean
Type parameters
Name |
---|
T |
Parameters
Name | Type | |
---|---|---|
input | Nil \ | T |
Returns
boolean