{"_id":"type-component","_rev":"120967","name":"type-component","description":"Cross-browser type assertions (less broken typeof)","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"ianstormtaylor","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2021-06-03T10:56:38.000Z","created":"2012-09-03T18:07:29.139Z","0.0.1":"2012-09-03T18:07:29.139Z"},"users":{},"versions":{"0.0.1":{"name":"type-component","description":"Cross-browser type assertions (less broken typeof)","version":"0.0.1","keywords":["typeof","type","utility"],"dependencies":{},"component":{"scripts":{"type/index.js":"index.js"}},"_id":"type-component@0.0.1","dist":{"shasum":"952a6c81c21efd24d13d811d0c8498cb860e1956","size":1295,"noattachment":false,"key":"/type-component/-/type-component-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/type-component/download/type-component-0.0.1.tgz"},"maintainers":[{"name":"ianstormtaylor","email":""},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1346695649139,"_cnpm_publish_time":1346695649139,"_hasShrinkwrap":false}},"readme":"\n# type\n\n  Type assertions aka less-broken `typeof`.\n\n## Example\n\n```js\nvar type = require('type');\n\nvar obj = new Date;\nif (type(obj) == 'date') ...\n```\n\n## API\n\n```js\ntype(new Date) == 'date'\ntype({}) == 'object'\ntype(null) == 'null'\ntype(undefined) == 'undefined'\ntype(\"hey\") == 'string'\ntype(true) == 'boolean'\ntype(false) == 'boolean'\ntype(12) == 'number'\ntype(type) == 'function'\ntype(/asdf/) == 'regexp'\ntype((function(){ return arguments })()) == 'arguments'\ntype([]) == 'array'\n```\n\n## License\n\n  MIT","_attachments":{}}