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
|
//=> 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)
|
##### .truthy(value)
|
||||||
|
|
||||||
Returns `true` for all values that evaluate to true in a boolean context:
|
Returns `true` for all values that evaluate to true in a boolean context:
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ export const enum TypeName {
|
||||||
ArrayBuffer = 'ArrayBuffer',
|
ArrayBuffer = 'ArrayBuffer',
|
||||||
SharedArrayBuffer = 'SharedArrayBuffer',
|
SharedArrayBuffer = 'SharedArrayBuffer',
|
||||||
DataView = 'DataView',
|
DataView = 'DataView',
|
||||||
Promise = 'Promise',
|
Promise = 'Promise',
|
||||||
URL = 'URL'
|
URL = 'URL'
|
||||||
}
|
}
|
||||||
|
|
||||||
const toString = Object.prototype.toString;
|
const toString = Object.prototype.toString;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue