Add is.boundFunction() (#31)
This commit is contained in:
parent
89fc424975
commit
319982a09c
3 changed files with 28 additions and 1 deletions
15
readme.md
15
readme.md
|
|
@ -96,6 +96,21 @@ is.asyncFunction(() => {});
|
|||
// => false
|
||||
```
|
||||
|
||||
##### .boundFunction(value)
|
||||
|
||||
Returns `true` for any `bound` function.
|
||||
|
||||
```js
|
||||
is.boundFunction(() => {});
|
||||
// => true
|
||||
|
||||
is.boundFunction(function () {}.bind(null));
|
||||
// => true
|
||||
|
||||
is.boundFunction(function () {});
|
||||
// => false
|
||||
```
|
||||
|
||||
##### .map(value)
|
||||
##### .set(value)
|
||||
##### .weakMap(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue