{"_id":"is-fn","_rev":"4605754","name":"is-fn","description":"Check if a value is a function","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-10T17:37:15.000Z","created":"2015-08-30T08:39:53.546Z","3.0.0":"2021-05-03T10:58:53.776Z","2.0.0":"2019-01-13T03:55:10.354Z","1.0.0":"2015-08-30T08:39:53.546Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-fn.git"},"versions":{"3.0.0":{"name":"is-fn","version":"3.0.0","description":"Check if a value is a function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-fn.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["function","fn","check","detect","is","test","type"],"devDependencies":{"ava":"^3.15.0","xo":"^0.39.1"},"gitHead":"b836d524750a1688e1ac26ad02d0534005e87eb4","bugs":{"url":"https://github.com/sindresorhus/is-fn/issues"},"homepage":"https://github.com/sindresorhus/is-fn#readme","_id":"is-fn@3.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"33b13bc6437fff937c6a1b80023831a76f626eb1","size":1526,"noattachment":false,"key":"/is-fn/-/is-fn-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-fn/download/is-fn-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-fn_3.0.0_1620039533610_0.32468678143042196"},"_hasShrinkwrap":false,"publish_time":1620039533776,"_cnpm_publish_time":1620039533776,"_cnpmcore_publish_time":"2021-12-16T17:14:06.919Z"},"2.0.0":{"name":"is-fn","version":"2.0.0","description":"Check if a value is a function","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-fn.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["function","func","fn","check","detect","is","test","type"],"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"549f761a759f60ce5a2c970b73c4e04935006d81","bugs":{"url":"https://github.com/sindresorhus/is-fn/issues"},"homepage":"https://github.com/sindresorhus/is-fn#readme","_id":"is-fn@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4030d580fa7b2a9cd69574eb7b739d745c57bce6","size":1571,"noattachment":false,"key":"/is-fn/-/is-fn-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-fn/download/is-fn-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-fn_2.0.0_1547351710179_0.6224733435371606"},"_hasShrinkwrap":false,"publish_time":1547351710354,"_cnpm_publish_time":1547351710354,"_cnpmcore_publish_time":"2021-12-16T17:14:07.159Z"},"1.0.0":{"name":"is-fn","version":"1.0.0","description":"Check if a value is a function","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/is-fn"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["function","func","fn","check","detect","is","test","type"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"2daf401589bdaa933b62cffe2a8508b1c1bf6323","bugs":{"url":"https://github.com/sindresorhus/is-fn/issues"},"homepage":"https://github.com/sindresorhus/is-fn","_id":"is-fn@1.0.0","_shasum":"9543d5de7bcf5b08a22ec8a20bae6e286d510d8c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9543d5de7bcf5b08a22ec8a20bae6e286d510d8c","size":1411,"noattachment":false,"key":"/is-fn/-/is-fn-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-fn/download/is-fn-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1440923993546,"_hasShrinkwrap":false,"_cnpm_publish_time":1440923993546,"_cnpmcore_publish_time":"2021-12-16T17:14:07.450Z"}},"readme":"# is-fn\n\n> Check if a value is a function\n\nIn 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](https://github.com/lodash/lodash/blob/8f621b38bfc67f64a9bf7af347e3398477790a39/lodash.js#L8171-L8173).\n\n## Install\n\n```\n$ npm install is-fn\n```\n\n## Usage\n\n```js\nimport isFunction from 'is-fn';\n\nisFunction(() => {});\n//=> true\n\nisFunction('unicorn');\n//=> false\n```\n\n## Related\n\n- [@sindresorhus/is](https://github.com/sindresorhus/is) - Type check values\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-fn#readme","bugs":{"url":"https://github.com/sindresorhus/is-fn/issues"},"license":"MIT"}