mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
perfomance fixes, eslint fixes (#4482)
This commit is contained in:
committed by
John-David Dalton
parent
29eb5713f5
commit
898b378f06
@@ -47,7 +47,7 @@ function isEmpty(value) {
|
||||
return true
|
||||
}
|
||||
if (isArrayLike(value) &&
|
||||
(Array.isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
||||
(Array.isArray(value) || typeof value === 'string' || typeof value.splice === 'function' ||
|
||||
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
||||
return !value.length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user