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