mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +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
|
return false
|
||||||
}
|
}
|
||||||
const type = typeof value
|
const type = typeof value
|
||||||
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
if (type == 'number' || type == 'boolean' ||
|
||||||
value == null || isSymbol(value)) {
|
value == null || isSymbol(value)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user