From 5fcd6e40385f45bc9091689337a7ab531861ba19 Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Sat, 20 Jul 2013 00:56:31 -0500 Subject: [PATCH] util: removed duplicated isArray check --- lib/util.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/util.js b/lib/util.js index f02aa8f6a4..fae4593867 100644 --- a/lib/util.js +++ b/lib/util.js @@ -430,8 +430,7 @@ function reduceToSingleString(output, base, braces) { // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. function isArray(ar) { - return Array.isArray(ar) || - (typeof ar === 'object' && objectToString(ar) === '[object Array]'); + return Array.isArray(ar); } exports.isArray = isArray;