Remove duplicate check symbol type (#2996)

This commit is contained in:
wikibootup
2017-02-12 04:42:20 +09:00
committed by John-David Dalton
parent b3810c2afa
commit d007878935

View File

@@ -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
}