mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Remove duplicate check symbol type (#2996)
This commit is contained in:
committed by
John-David Dalton
parent
b3810c2afa
commit
d007878935
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user