x-is-function
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "x-is-function", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple function test", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# x-is-function | ||
Simple function test | ||
## 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 | ||
* [x-is-array](https://www.npmjs.com/package/x-is-array) | ||
* [x-is-object](https://www.npmjs.com/package/x-is-object) | ||
* [x-is-string](https://www.npmjs.com/package/x-is-string) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2279
43