mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Minor format not in isKey.
This commit is contained in:
@@ -17,8 +17,7 @@ function isKey(value, object) {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const type = typeof value
|
const type = typeof value
|
||||||
if (type == 'number' || type == 'boolean' ||
|
if (type == 'number' || type == 'boolean' || value == null || isSymbol(value)) {
|
||||||
value == null || isSymbol(value)) {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user