Update readme

This commit is contained in:
arturovt 2018-07-09 11:37:45 +03:00
parent cffdca3aa3
commit 89475f5a82
2 changed files with 13 additions and 2 deletions

View file

@ -176,6 +176,17 @@ is.directInstanceOf(new UnicornError(), Error);
//=> false
```
##### .urlInstance(value)
Returns `true` if `value` is an instance of `URL` class.
```js
const url = new URL('https://google.com');
is.urlInstance(url);
//=> true
```
##### .truthy(value)
Returns `true` for all values that evaluate to true in a boolean context: