Browse Source

util: removed duplicated isArray check

v0.11.5-release
Wyatt Preul 12 years ago
committed by Trevor Norris
parent
commit
5fcd6e4038
  1. 3
      lib/util.js

3
lib/util.js

@ -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;

Loading…
Cancel
Save