stale/node_modules/is-callable
PJ Quirk 0649bd8119
Add support to v1 to connect to GHES (#69)
* Bumping actions/github to 2.2.0 for GHES

* Husky commit correct node modules
2020-05-15 15:25:57 -04:00
..
.editorconfig Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.eslintrc Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.istanbul.yml Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.jscs.json Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
.travis.yml Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
CHANGELOG.md Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
LICENSE Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
Makefile Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
README.md Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
index.js Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
package.json Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00
test.js Add support to v1 to connect to GHES (#69) 2020-05-15 15:25:57 -04:00

README.md

is-callable Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.

Example

var isCallable = require('is-callable');
var assert = require('assert');

assert.notOk(isCallable(undefined));
assert.notOk(isCallable(null));
assert.notOk(isCallable(false));
assert.notOk(isCallable(true));
assert.notOk(isCallable([]));
assert.notOk(isCallable({}));
assert.notOk(isCallable(/a/g));
assert.notOk(isCallable(new RegExp('a', 'g')));
assert.notOk(isCallable(new Date()));
assert.notOk(isCallable(42));
assert.notOk(isCallable(NaN));
assert.notOk(isCallable(Infinity));
assert.notOk(isCallable(new Number(42)));
assert.notOk(isCallable('foo'));
assert.notOk(isCallable(Object('foo')));

assert.ok(isCallable(function () {}));
assert.ok(isCallable(function* () {}));
assert.ok(isCallable(x => x * x));

Tests

Simply clone the repo, npm install, and run npm test