Your typeof Is Lying to You

JavaScript's typeof is not a type system, it's just a coarse runtime label, and that's why null, functions, arrays, dates, and other values all collapse into the same "object" bucket.

submitted by /u/OtherwisePush6424
[link] [留言]