must-have-func

1.0.0 • Public • Published

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");

Package Sidebar

Install

npm i must-have-func

Weekly Downloads

5

Version

1.0.0

License

ISC

Last publish

Collaborators

  • morriphi