Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
util: removed duplicated isArray check
Browse files Browse the repository at this point in the history
  • Loading branch information
geek authored and trevnorris committed Jul 22, 2013
1 parent e3bb6e1 commit 5fcd6e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/util.js
Expand Up @@ -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;

Expand Down

0 comments on commit 5fcd6e4

Please sign in to comment.