# is-function

> is that thing a function? Use this module to find out

Latest version **1.0.2** (published 2020-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-function
pnpm add is-function
yarn add is-function
bun add is-function
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-04-22 |
| First published | 2014-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-function) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Stephen Sugden |
| Maintainers | grncdr |
| Keywords | polyfill, is-function, ie6 |

## Links

- npm: https://www.npmjs.com/package/is-function
- Repository: https://github.com/grncdr/js-is-function
- Issues: https://github.com/grncdr/js-is-function/issues
- npm.io page: https://npm.io/package/is-function

## Recent versions

- 1.0.2 (latest) — 2020-04-22
- 1.0.1 — 2014-02-18
- 1.0.0 — 2014-01-07
- 0.0.0 — 2014-01-07

## README

# is-function

[![browser support](https://ci.testling.com/grncdr/js-is-function.png)](https://ci.testling.com/grncdr/js-is-function)

Is that thing a function? Use this module to find out.

## API

### module.exports = function isFunction(fn) -> Boolean

Return `true` if `fn` is a function, otherwise `false`.

## Why not typeof fn === 'function'

Because certain old browsers misreport the type of `RegExp` objects as functions.

## Acknowledgements

I stole this from https://github.com/ljharb/object-keys

## License

MIT

---
_Source: https://npm.io/package/is-function · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
