We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c76f755 commit 04f15f6Copy full SHA for 04f15f6
src/react/JSONTree/obj-type.js
@@ -1,5 +1,7 @@
1
export default function(obj) {
2
- if (obj !== null && typeof obj === 'object' && typeof obj[Symbol.iterator] === 'function') {
+ if (obj !== null && typeof obj === 'object' && !Array.isArray(obj) &&
3
+ typeof obj[Symbol.iterator] === 'function'
4
+ ) {
5
return 'Iterable';
6
}
7
return Object.prototype.toString.call(obj).slice(8, -1);
0 commit comments