From d0078789358fc9232c3d5914a189ef02772dc81b Mon Sep 17 00:00:00 2001 From: wikibootup Date: Sun, 12 Feb 2017 04:42:20 +0900 Subject: [PATCH] Remove duplicate check symbol type (#2996) --- .internal/isKey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.internal/isKey.js b/.internal/isKey.js index 7cbba64e2..b28d7a664 100644 --- a/.internal/isKey.js +++ b/.internal/isKey.js @@ -17,7 +17,7 @@ function isKey(value, object) { return false } const type = typeof value - if (type == 'number' || type == 'symbol' || type == 'boolean' || + if (type == 'number' || type == 'boolean' || value == null || isSymbol(value)) { return true }