Skip to main content

@terascope/utils / empty

empty

Functions

isEmpty()

isEmpty<T>(val?): val is undefined

Check if an input is empty, similar to lodash.isEmpty

Type parameters

Type parameter
T

Parameters

ParameterType
val?null | T

Returns

val is undefined

Source

packages/utils/src/empty.ts:13


isNil()

isNil<T>(input): input is Nil

Type parameters

Type parameter
T

Parameters

ParameterType
inputNil | T

Returns

input is Nil

Source

packages/utils/src/empty.ts:4


isNotNil()

isNotNil<T>(input): boolean

Type parameters

Type parameter
T

Parameters

ParameterType
inputNil | T

Returns

boolean

Source

packages/utils/src/empty.ts:8