Skip to content

Instantly share code, notes, and snippets.

@amark
Last active December 21, 2015 11:19
Show Gist options
  • Save amark/6298069 to your computer and use it in GitHub Desktop.
Save amark/6298069 to your computer and use it in GitHub Desktop.
a more english way to check type with theory.
;module.exports=require('theory')
('is', function(a){
return function(what){
return {
binary: a.bi.is(what)
,number: a.num.is(what)
,text: a.text.is(what)
,list: a.list.is(what)
,object: a.obj.is(what)
,func: a.fns.is(what)
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment