is-callable

WebJar for is-callable

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.ljharb
ArtifactId

ArtifactId

is-callable
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

is-callable
WebJar for is-callable
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/ljharb/is-callable

Download is-callable

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.ljharb/is-callable/ -->
<dependency>
    <groupId>org.webjars.bowergithub.ljharb</groupId>
    <artifactId>is-callable</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.ljharb/is-callable/
implementation 'org.webjars.bowergithub.ljharb:is-callable:1.1.3'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.ljharb/is-callable/
implementation ("org.webjars.bowergithub.ljharb:is-callable:1.1.3")
'org.webjars.bowergithub.ljharb:is-callable:jar:1.1.3'
<dependency org="org.webjars.bowergithub.ljharb" name="is-callable" rev="1.1.3">
  <artifact name="is-callable" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.ljharb', module='is-callable', version='1.1.3')
)
libraryDependencies += "org.webjars.bowergithub.ljharb" % "is-callable" % "1.1.3"
[org.webjars.bowergithub.ljharb/is-callable "1.1.3"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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));

Install

Install with

npm install is-callable

Tests

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

Versions

Version
1.1.3