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
- Host: GitHub
- URL: https://github.com/serapath/x-is-function
- Owner: serapath
- License: mit
- Created: 2016-09-05T02:24:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-22T16:04:27.000Z (over 9 years ago)
- Last Synced: 2024-09-21T09:56:50.686Z (almost 2 years ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/x-is-function
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)