Comment Comment by EnderShadow8 Note: don't use typeof x === 'object' to check whether something is a valid object, because it will return true for arrays as well.Arrays are objects, so this is expected behaviour. parent EnderShadow8 5 years ago
Arrays are objects, so this is expected behaviour.