From 68a34f62242c284bdd2a8e9a106895a0cbbdb48c Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 22 Dec 2014 04:16:47 -0500 Subject: [PATCH] refactor(util) type --- lib/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); });