refactor(util) type

This commit is contained in:
coderaiser 2014-12-22 04:16:47 -05:00
parent 9601355097
commit 68a34f6224

View file

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