projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3bb6e1
)
util: removed duplicated isArray check
author
Wyatt Preul
<wpreul@gmail.com>
Sat, 20 Jul 2013 05:56:31 +0000
(
00:56
-0500)
committer
Trevor Norris
<trev.norris@gmail.com>
Mon, 22 Jul 2013 23:07:40 +0000
(16:07 -0700)
lib/util.js
patch
|
blob
|
history
diff --git
a/lib/util.js
b/lib/util.js
index
f02aa8f
..
fae4593
100644
(file)
--- a/
lib/util.js
+++ b/
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;