From 63548c00c0314a835402bf1f30883d33e7b19dc1 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 1 Nov 2017 15:47:58 +0800 Subject: [PATCH] refactor: !isArray(obj) is always true --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 4e97511..b3fd865 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -207,7 +207,7 @@ function forEach(obj, fn) { } // Force an array if not already something iterable - if (typeof obj !== 'object' && !isArray(obj)) { + if (typeof obj !== 'object') { /*eslint no-param-reassign:0*/ obj = [obj]; }