1.0.0 • Published 8 years ago
must-have-func v1.0.0
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");
1.0.0
8 years ago