mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Use Array.isArray.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import baseKeys from './_baseKeys.js';
|
||||
import getTag from './_getTag.js';
|
||||
import isArguments from './isArguments.js';
|
||||
import isArray from './isArray.js';
|
||||
import isArrayLike from './isArrayLike.js';
|
||||
import isBuffer from './isBuffer.js';
|
||||
import isPrototype from './_isPrototype.js';
|
||||
@@ -51,7 +50,7 @@ function isEmpty(value) {
|
||||
return true;
|
||||
}
|
||||
if (isArrayLike(value) &&
|
||||
(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