JSPM

  • Created
  • Published
  • Downloads 14806
  • Score
    100M100P100Q123749F
  • License MIT

Determine whether a given value is a function object.

Package Exports

  • is-function-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-function-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-function-x

Travis status Dependency status devDependency status npm version

Determine whether a given value is a function object.

Version: 1.2.0
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

module.exports(value)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 Description
value * The value to check.

Example

var isFunction = require('is-function-x');

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