Minor format not in isKey.

This commit is contained in:
John-David Dalton
2017-02-11 23:11:01 -08:00
parent d007878935
commit 8429c1db36

View File

@@ -17,8 +17,7 @@ function isKey(value, object) {
return false
}
const type = typeof value
if (type == 'number' || type == 'boolean' ||
value == null || isSymbol(value)) {
if (type == 'number' || type == 'boolean' || value == null || isSymbol(value)) {
return true
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||