An isomorphic, runtime, type checking utility that can be used on the server or in the client.
It is used in the reactive framework milojs
Check is a module for parameters checking extracted from Meteor framework.
It allows to both document and to check parameter types in your function making code both readable and stable.
Usage
var check = milo.check , Match = check.Match;function My(name, obj, cb) { // if any of checks fail an error will be thrown check(name, String); check(obj, Match.ObjectIncluding({ options: Object })); check(cb, Function); // ... your code}