Cutwater

Cutwater

  • Docs
  • Help
  • GitHub

VarUtils

@codification/cutwater-core > VarUtils

Class

Utility for handling common tasks related to variable validation.

beta:

Hierarchy

VarUtils

Methods

  • isMissing
  • isPresent

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:

NameTypeDescription
Optional valueanythe 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:

NameTypeDescription
Optional valueanythe value to be checked

Returns: boolean true if the value is defined and non-null


  • Class
  • Hierarchy
    • Methods
  • Methods
    • `` isMissing
    • `` isPresent
Cutwater
Docs
Getting Started
Community
Stack Overflow
More
GitHubStar
Copyright © 2019 Codification.org