Add is.url
This commit is contained in:
parent
9df6f4ebe9
commit
1ecd9367b2
3 changed files with 28 additions and 0 deletions
|
|
@ -255,6 +255,12 @@ is.urlInstance(url);
|
|||
//=> true
|
||||
```
|
||||
|
||||
### .url(value)
|
||||
|
||||
Returns `true` if `value` is a URL.
|
||||
|
||||
Note: this only does basic checking using the [`URL` class](https://developer.mozilla.org/en-US/docs/Web/API/URL) constructor.
|
||||
|
||||
##### .truthy(value)
|
||||
|
||||
Returns `true` for all values that evaluate to true in a boolean context:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue