feature(util) type: add null, mv back object

This commit is contained in:
coderaiser 2014-12-23 04:14:26 -05:00
parent 8b7f93cc69
commit 0cf714bf59

View file

@ -404,12 +404,12 @@
return typeof variable === name;
}
['arrayBuffer', 'file', 'array']
['null', 'arrayBuffer', 'file', 'array', 'object']
.forEach(function(name) {
type[name] = typeOf.bind(null, name);
});
['string', 'undefined', 'boolean', 'number', 'function', 'object']
['string', 'undefined', 'boolean', 'number', 'function']
.forEach(function(name) {
type[name] = typeOfSimple.bind(null, name);
});