assert-function
v1.0.0
Published
Assert that a value is a function
Readme
assert-function 
Assert that a value is a function
Install
$ npm install --save assert-functionUsage
var assertFunction = require('assert-function')
assertFunction(function () {})
//=> noop
assertFunction('foo')
// => TypeError: Expected function, got: fooAPI
assertFunction(value) -> undefined
value
Required
Type: any
A value to check. A TypeError is throw for non-function values.
License
MIT © Ben Drucker
