diff --git a/lib/util.js b/lib/util.js index 46aae627..1a340e00 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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); });