$ gnpm install x-is-function
x is a function
npm install x-is-function
var isFunction = require('x-is-function')
isFunction(function () {})
// -> true
isFunction("hello")
// -> false
isFunction("")
// -> false
isFunction(9)
// -> false
isFunction(true)
// -> false
isFunction(new Date())
// -> false
isFunction({})
// -> false
isFunction(null)
// -> false
isFunction(undefined)
// -> false
a list of other x-is-...
modules can be found at
Copyright 2013 - present © cnpmjs.org | Home |