Namespace: Basic:hasValue

Basic:hasValue

Source:

Methods

hasValue() → {Boolean}

Check if variable(s) is set, by being neither undefined nor null.

Parameters:
Name Type Attributes Description
... * <optional>
<repeatable>

add any number of variables you wish to check

Source:
Returns:
variable(s) is/are set
Type
Boolean
Example
function set(name, value){
  if( hasValue(name, value) ){
    ...
  }
}