@bemoje/is-function

1.0.1 • Public • Published

@bemoje/is-function

Returns true if the argument is a function; false otherwise.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/is-function
npm install --save @bemoje/is-function
npm install --save-dev @bemoje/is-function

Usage

import isFunction from '@bemoje/is-function'

isFunction(function () {})
//=> true

isFunction(class {})
//=> true

isFunction(() => {})
//=> true

isFunction()
//=> false

isFunction('a')
//=> false

isFunction(1)
//=> false

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

isFunction

Returns

true if the argument is a function; false otherwise.

Parameters
  • value any The value to evaluate
Returns

boolean

Package Sidebar

Install

npm i @bemoje/is-function

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

6.7 kB

Total Files

5

Last publish

Collaborators

  • bemoje