{"name":"is-function-x","version":"1.0.2","description":"isFunction module. Determine whether a given value is a function object.","homepage":"https://github.com/Xotic750/is-function-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2015-2016","keywords":["ES6","isFunction","module","javascript","nodejs","browser"],"main":"index.js","engines":{"node":"*"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Xotic750/is-function-x.git"},"bugs":{"url":"https://github.com/Xotic750/is-function-x/issues"},"dependencies":{"has-to-string-tag-x":"^1.0.6","to-string-tag-x":"^1.0.7","is-primitive":"^2.0.0"},"devDependencies":{"es5-shim":"^4.5.0","es6-shim":"^0.34.2","json3":"^3.3.2","jscs":"^2.8.0","uglify-js":"^2.6.1","browserify":"^13.0.0","browserify-derequire":"^0.9.4","jasmine-node":"^1.14.5","jsdoc-to-markdown":"^1.3.3","nsp":"^2.2.0"},"scripts":{"test":"jasmine-node --matchall tests/spec/","security":"nsp check","style":"jscs index.js","docs":"jsdoc2md --name-format --example-lang js index.js > README.md","build":"browserify -p browserify-derequire -e index.js -o lib/is-function-x.js -u 'crypto' -s returnExports","build-uglify":"uglifyjs lib/is-function-x.js -o lib/is-function-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/is-function-x.map"},"gitHead":"c0b349f4968b0213b55a47a0593b407eeed2dc68","_id":"is-function-x@1.0.2","_shasum":"e6718d0756b5df5dcc8373efedea9b2e153b9011","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"dist":{"shasum":"e6718d0756b5df5dcc8373efedea9b2e153b9011","tarball":"http://registry-npm.ywwl.com/is-function-x/download/is-function-x-1.0.2.tgz","integrity":"sha512-iM2LHCCPwGUyC1xy5gLU0PVC1x0Vk/gk/SX58Ov1Wad1d3XC6WIevFDK3PhlSy7gEyhDM5e9hycfCk9kyG6G+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjW78uL/jD7dXiouShAALfB5COCH37Ia6MMhnFM0YgZQIgZNWKf3M3Y4VtoEJGZpOe3lXN+9/VgMdQsgptfpr2V9g="}],"size":9334,"noattachment":false,"key":"/is-function-x/-/is-function-x-1.0.2.tgz"},"directories":{},"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/is-function-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/is-function-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/is-function-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/is-function-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/is-function-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/is-function-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/is-function-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/is-function-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/is-function-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/is-function-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/is-function-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/is-function-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/is-function-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/is-function-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_is-function-x\"></a>\n\n## is-function-x\n\nDetermine whether a given value is a function object.\n\n<a name=\"exp_module_is-function-x--module.exports\"></a>\n\n### `module.exports(value, [allowClass])` ⇒ <code>boolean</code> ⏏\n\nChecks if `value` is classified as a `Function` object.\n\n**Kind**: Exported function  \n**Returns**: <code>boolean</code> - Returns `true` if `value` is correctly classified,\nelse `false`.\n\n| Param        | Type                 | Default            | Description                    |\n| ------------ | -------------------- | ------------------ | ------------------------------ |\n| value        | <code>\\*</code>      |                    | The value to check.            |\n| [allowClass] | <code>boolean</code> | <code>false</code> | Whether to filter ES6 classes. |\n\n**Example**\n\n```js\nimport isFunction from 'is-function-x';\n\nconsole.log(isFunction()); // false\nconsole.log(isFunction(Number.MIN_VALUE)); // false\nconsole.log(isFunction('abc')); // false\nconsole.log(isFunction(true)); // false\nconsole.log(isFunction({name: 'abc'})); // false\nconsole.log(isFunction(function() {})); // true\nconsole.log(isFunction(new Function())); // true\nconsole.log(isFunction(function* test1() {})); // true\nconsole.log(isFunction(function test2(a, b) {})); // true\nconsole.log(isFunction(async function test3() {})); // true\nconsole.log(isFunction(class Test {})); // false\nconsole.log(isFunction(class Test {}, true)); // true\nconsole.log(\n  isFunction((x, y) => {\n    return this;\n  }),\n); // true\n```\n","publish_time":1453681979987,"_cnpm_publish_time":1453681979987,"dist-tags":{"latest":"4.1.2"}}