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.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton