Namespace: Basic:isUrl

Basic:isUrl

Source:

Methods

isUrl(value) → {Boolean}

Returns if a value is an URL object.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is a URL object
Type
Boolean
Example
if( isUrl(val) ){
  return val.path;
}