# isfunction

> Is it a function?

Latest version **0.0.6** (published 2013-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install isfunction
pnpm add isfunction
yarn add isfunction
bun add isfunction
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2013-08-05 |
| First published | 2013-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andrew Griffiths |
| Maintainers | techjacker |
| Keywords | function |

## Links

- npm: https://www.npmjs.com/package/isfunction
- Repository: git@github.com:techjacker/isfunction
- npm.io page: https://npm.io/package/isfunction

## Recent versions

- 0.0.6 (latest) — 2013-08-05
- 0.0.3 — 2013-08-02

## README

# isfunction

Is it a function?

[![Build Status](https://secure.travis-ci.org/techjacker/isfunction.png)](http://travis-ci.org/techjacker/isfunction)

### Install

#### Node

```Shell
npm install isfunction
```

#### Browser

```Shell
component install isfunction
```

```Shell
bower install isfunction
```


## Usage

```JavaScript
var isfunction = require('isfunction'),
	randomFn = function () {};

isfunction('blah'); // false
isfunction(randomFn); // true
```


### Docs
[Yuidocs documentation here](docs/index.html)
- fire up the connect server ```$ grunt docs```
- navigate your browser to the [docs](http://localhost:9001)

### API
   - [isFunction](#isfunction)
<a name=""></a>
 
<a name="isfunction"></a>
### isFunction
should return true if a function.

```js
var randomFn = function (argument) {},
			randomObj = {},
			randomStr = 'blah';

expect(isFunction(randomFn)).to.be.ok();
		expect(isFunction(randomObj)).to.not.be.ok();
		expect(isFunction(randomStr)).to.not.be.ok();
done();
```

## License
Copyright (c) 2013 Andrew Griffiths <mail@andrewgriffithsonline.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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