Add is.boundFunction() (#31)

This commit is contained in:
Darren Scerri 2017-11-10 19:11:35 +01:00 committed by Brandon Smith
parent 89fc424975
commit 319982a09c
3 changed files with 28 additions and 1 deletions

View file

@ -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)