GuobaGuoba Utils

isNotEmpty

@guoba-ai/utils / guard / isNotEmpty

Function: isNotEmpty()

function isNotEmpty(val): boolean;

Defined in: guard.ts:217

Check if a value is not empty according to isEmpty.

Parameters

val

unknown

The value to check

Returns

boolean

true if the value is not considered empty

Example

isNotEmpty([1]) // true
isNotEmpty([]) // false
isNotEmpty(null) // false

On this page