is-function-x

WebJar for is-function-x

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-function-x
Last Version

Last Version

3.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-function-x
WebJar for is-function-x
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Xotic750/is-function-x

Download is-function-x

How to add to project

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

Dependencies

compile (8)

Group / Artifact Type Version
org.webjars.npm : attempt-x jar [1.1.1,2)
org.webjars.npm : to-boolean-x jar [1.0.1,2)
org.webjars.npm : is-primitive jar [2.0.0,3)
org.webjars.npm : has-to-string-tag-x jar [1.4.1,2)
org.webjars.npm : normalize-space-x jar [3.0.0,4)
org.webjars.npm : replace-comments-x jar [2.0.0,3)
org.webjars.npm : is-falsey-x jar [1.0.1,2)
org.webjars.npm : to-string-tag-x jar [1.4.2,2)

Project Modules

There are no modules declared in this project.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

is-function-x

Determine whether a given value is a function object.

module.exports(value, [allowClass])boolean

Checks if value is classified as a Function object.

Kind: Exported function
Returns: boolean - Returns true if value is correctly classified, else false.

Param Type Default Description
value * The value to check.
[allowClass] boolean false Whether to filter ES6 classes.

Example

import isFunction from 'is-function-x';

console.log(isFunction()); // false
console.log(isFunction(Number.MIN_VALUE)); // false
console.log(isFunction('abc')); // false
console.log(isFunction(true)); // false
console.log(isFunction({name: 'abc'})); // false
console.log(isFunction(function() {})); // true
console.log(isFunction(new Function())); // true
console.log(isFunction(function* test1() {})); // true
console.log(isFunction(function test2(a, b) {})); // true
console.log(isFunction(async function test3() {})); // true
console.log(isFunction(class Test {})); // false
console.log(isFunction(class Test {}, true)); // true
console.log(
  isFunction((x, y) => {
    return this;
  }),
); // true

Versions

Version
3.3.0