Travis status Dependency status devDependency status npm version ## is-function-x Determine whether a given value is a function object. **Version**: 3.3.0 **Author**: Xotic750 **License**: [MIT](<https://opensource.org/licenses/MIT>) **Copyright**: Xotic750 ### `module.exports(value, [allowClass])` ⇒ boolean ⏏ Checks if `value` is classified as a `Function` object. **Kind**: Exported function **Returns**: boolean - Returns `true` if `value` is correctly classified, else `false`. | Param | Type | Default | Description | | --- | --- | --- | --- | | value | \* | | The value to check. | | [allowClass] | boolean | false | Whether to filter ES6 classes. | **Example** ```js var isFunction = require('is-function-x'); isFunction(); // false isFunction(Number.MIN_VALUE); // false isFunction('abc'); // false isFunction(true); // false isFunction({ name: 'abc' }); // false isFunction(function () {}); // true isFunction(new Function ()); // true isFunction(function* test1() {}); // true isFunction(function test2(a, b) {}); // true isFunction(async function test3() {}); // true isFunction(class Test {}); // false isFunction(class Test {}, true); // true isFunction((x, y) => {return this;}); // true ```