Update readme
This commit is contained in:
parent
cffdca3aa3
commit
89475f5a82
2 changed files with 13 additions and 2 deletions
11
readme.md
11
readme.md
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ export const enum TypeName {
|
|||
ArrayBuffer = 'ArrayBuffer',
|
||||
SharedArrayBuffer = 'SharedArrayBuffer',
|
||||
DataView = 'DataView',
|
||||
Promise = 'Promise',
|
||||
URL = 'URL'
|
||||
Promise = 'Promise',
|
||||
URL = 'URL'
|
||||
}
|
||||
|
||||
const toString = Object.prototype.toString;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue