VarUtils
@codification/cutwater-core > VarUtils
Class
Utility for handling common tasks related to variable validation.
beta:
Hierarchy
VarUtils
Methods
Methods
<Static>
isMissing
▸ isMissing(value?: any
): boolean
Defined in VarUtils.ts:15
Returns true
if the value is undefined
or null
, otherwise, false
. Empty or blank strings will return false
.
Parameters:
Name | Type | Description |
---|---|---|
Optional value | any | the value to be checked |
Returns: boolean
true if the value is undefined or null
<Static>
isPresent
▸ isPresent(value?: any
): boolean
Defined in VarUtils.ts:27
Returns false
if the value is undefined
or null
, otherwise, true
. Empty or blank strings will return true
.
Parameters:
Name | Type | Description |
---|---|---|
Optional value | any | the value to be checked |
Returns: boolean
true if the value is defined and non-null