Check if a value is a function
npm install is-fn> Check if a value is a function
In Node.js, just use typeof fn which works exactly the same. This module can be useful in the browser where typeof fn has a myriad of bugs.
```
$ npm install is-fn
`js
import isFunction from 'is-fn';
isFunction(() => {});
//=> true
isFunction('unicorn');
//=> false
``
- @sindresorhus/is - Type check values