util: removed duplicated isArray check
This commit is contained in:
parent
e3bb6e11c3
commit
5fcd6e4038
@ -430,8 +430,7 @@ function reduceToSingleString(output, base, braces) {
|
|||||||
// NOTE: These type checking functions intentionally don't use `instanceof`
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
||||||
// because it is fragile and can be easily faked with `Object.create()`.
|
// because it is fragile and can be easily faked with `Object.create()`.
|
||||||
function isArray(ar) {
|
function isArray(ar) {
|
||||||
return Array.isArray(ar) ||
|
return Array.isArray(ar);
|
||||||
(typeof ar === 'object' && objectToString(ar) === '[object Array]');
|
|
||||||
}
|
}
|
||||||
exports.isArray = isArray;
|
exports.isArray = isArray;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user