Skip to content

Commit 5fcd6e4

Browse files
geektrevnorris
authored andcommitted
util: removed duplicated isArray check
1 parent e3bb6e1 commit 5fcd6e4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,7 @@ function reduceToSingleString(output, base, braces) {
430430
// NOTE: These type checking functions intentionally don't use `instanceof`
431431
// because it is fragile and can be easily faked with `Object.create()`.
432432
function isArray(ar) {
433-
return Array.isArray(ar) ||
434-
(typeof ar === 'object' && objectToString(ar) === '[object Array]');
433+
return Array.isArray(ar);
435434
}
436435
exports.isArray = isArray;
437436

0 commit comments

Comments
 (0)