Methods
isError(value) → {Boolean}
Returns if a value is an error.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is an error
- Type
- Boolean
Example
if( isError(val) ){
return val.message;
}