Update readme.md

This commit is contained in:
Sindre Sorhus 2018-07-10 15:57:44 +07:00 committed by GitHub
parent aeadb548eb
commit 6d79aa71bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,10 +178,10 @@ is.directInstanceOf(new UnicornError(), Error);
##### .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
const url = new URL('https://www.example.com');
const url = new URL('https://example.com');
is.urlInstance(url);
//=> true