Namespace: Basic:isError

Basic:isError

Source:

Methods

isError(value) → {Boolean}

Returns if a value is an error.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is an error
Type
Boolean
Example
if( isError(val) ){
  return val.message;
}