is-function-x

WebJar for is-function-x

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

is-function-x
Последняя версия

Последняя версия

3.3.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

is-function-x
WebJar for is-function-x
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать is-function-x

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
3.3.0