mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 02:53:53 +03:00
arrays shouldn't be treated as an iterable
This commit is contained in:
parent
c76f755863
commit
04f15f6d4d
|
@ -1,5 +1,7 @@
|
|||
export default function(obj) {
|
||||
if (obj !== null && typeof obj === 'object' && typeof obj[Symbol.iterator] === 'function') {
|
||||
if (obj !== null && typeof obj === 'object' && !Array.isArray(obj) &&
|
||||
typeof obj[Symbol.iterator] === 'function'
|
||||
) {
|
||||
return 'Iterable';
|
||||
}
|
||||
return Object.prototype.toString.call(obj).slice(8, -1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user