An open API service indexing awesome lists of open source software.

https://github.com/serapath/x-is-function

Simple function test
https://github.com/serapath/x-is-function

Last synced: 5 months ago
JSON representation

Simple function test

Awesome Lists containing this project

README

          

# x-is-function
x is a function

# usage
`npm install x-is-function`

```js
var isFunction = require('x-is-function')

isFunction(function () {})
// -> true

isFunction("hello")
// -> false

isFunction("")
// -> false

isFunction(9)
// -> false

isFunction(true)
// -> false

isFunction(new Date())
// -> false

isFunction({})
// -> false

isFunction(null)
// -> false

isFunction(undefined)
// -> false
```

# related
a list of other `x-is-...` modules can be found at
* [x-is](https://www.npmjs.com/package/x-is)