1.0.0 • Published 8 years ago

must-have-func v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

must-have-func

what?

A little module to mandate functions on an object. Will throw error if listed function is not present or is not a function.

install

npm install must-have-func --save

use

var mustHave = require('must-have-func'); mustHave(myObject, "getName", "getEmail"); mustHave(myObject, "works.with.nested.functions.doSomething");