Update readme.md
This commit is contained in:
parent
aeadb548eb
commit
6d79aa71bc
1 changed files with 2 additions and 2 deletions
|
|
@ -178,10 +178,10 @@ is.directInstanceOf(new UnicornError(), Error);
|
||||||
|
|
||||||
##### .urlInstance(value)
|
##### .urlInstance(value)
|
||||||
|
|
||||||
Returns `true` if `value` is an instance of `URL` class.
|
Returns `true` if `value` is an instance of the [`URL` class](https://developer.mozilla.org/en-US/docs/Web/API/URL).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const url = new URL('https://www.example.com');
|
const url = new URL('https://example.com');
|
||||||
|
|
||||||
is.urlInstance(url);
|
is.urlInstance(url);
|
||||||
//=> true
|
//=> true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue