mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
util: removed duplicated isArray check
This commit is contained in:
1 parent
e3bb6e11c3
commit
5fcd6e4038
1 file changed
+1
-2
+1
-2
@@ -430,8 +430,7 @@ function reduceToSingleString(output, base, braces) {
|
||||
// NOTE: These type checking functions intentionally don't use `instanceof`
|
||||
// because it is fragile and can be easily faked with `Object.create()`.
|
||||
function isArray(ar) {
|
||||
return Array.isArray(ar) ||
|
||||
(typeof ar === 'object' && objectToString(ar) === '[object Array]');
|
||||
return Array.isArray(ar);
|
||||
}
|
||||
exports.isArray = isArray;
|
||||
|
||||
|
||||
Reference in new issue
Block a user