either [Array Object] or [object Object]
where [01,2,4,5,6] is [Array Object]
and {a:"s"} is [object Object]
but what i have here is
[{a:"s"},{a:"b"}]
so it makes it the "array of objects or key value pair" this is where the condition is failing, because now
[01,2,4,5,6] is [Array Object] is true
[{a:"s"},{a:"b"}] is also [Array Object] is true