summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/x-is-function/README.md
blob: 0c21a7e9ff09f60746b6e0d3ef90984ac10dbee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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)