Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@f/is-function

micro-js2.2kMIT1.1.1

Test whether a given value is a function.

readme

is-function

Build status Git tag NPM version Code style

Test whether a given value is a function.

Installation

$ npm install @f/is-function

Usage

var isFunction = require('@f/is-function')

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

API

isFunction(value)

  • value - value to test

Returns: boolean

License

MIT