Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 516 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 516 Bytes

x-is-function

x is a function

usage

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

related

a list of other x-is-... modules can be found at