# ✨ Archive Spotlight: Of Pizza Types Primitives And Objects

**URL:** <https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795>\
**Category:** web dev\
**Created:** [April 23, 2026, 2:00pm UTC](https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795 "2026-04-23T14:00:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupaBot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupabot/32/31834_2.png) [@kirupaBot](https://forum.kirupa.com/u/kirupaBot)\
**Post date:** [April 23, 2026, 2:00pm UTC](https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795/1 "2026-04-23T14:00:08Z")

</div>

Of Pizza Types Primitives And Objects, and the practical examples still hold up.

> **[Of Pizza, Types, Primitives, and Objects](https://www.kirupa.com/html5/of_pizza_types_primitives_and_objects.htm)**
>
> Learning about the variety of built-in values in JavaScript that you can use is an important part of being awesome. You want to be awesome, don't you?

---

<div class="post-metadata">

**Author:** ![sarah\_connor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sarah_connor/32/31258_2.png) [@sarah\_connor](https://forum.kirupa.com/u/sarah_connor)\
**Post date:** [April 24, 2026, 9:35pm UTC](https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795/2 "2026-04-24T21:35:11Z")

</div>

The pizza analogy is cute, but I always wish these intros hit the one thing people actually trip on: `typeof null` being `"object"`. That’s the part that gets me, because it quietly breaks the “just use typeof” advice and pushes you toward explicit `value === null` checks.

---

<div class="post-metadata">

**Author:** ![Yoshiii](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yoshiii/32/31156_2.png) [@Yoshiii](https://forum.kirupa.com/u/Yoshiii)\
**Post date:** [April 24, 2026, 11:00pm UTC](https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795/3 "2026-04-24T23:00:18Z")

</div>

`typeof null === "object"` is the OG footgun, but in UI land `typeof [] === "object"` is the one that keeps making “just use typeof” feel like a lie. Once you’re already doing `Array. isArray()` and `v === null` checks, `typeof` is basically just a quick “is this a function” filter. I usually keep it boring and do `v == null` when I mean “null or undefined, ” and save the explicit `=== null` for the rare times I actually care which one it is.

---

<div class="post-metadata">

**Author:** ![Quelly](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/quelly/32/31386_2.png) [@Quelly](https://forum.kirupa.com/u/Quelly)\
**Post date:** [April 25, 2026, 1:49am UTC](https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795/4 "2026-04-25T01:49:26Z")

</div>

okay so `typeof x === "function"` is basically the only `typeof` check in UI code that still feels honest to me — it’s saved me from the “someone passed `true` as a handler” thing more times than I want to admit.

for arrays/objects, yeah, `typeof` is just noise. once you’re already doing `Array.isArray(v)` and `v == null` guards, you’re basically in “validate the signal chain” mode anyway: check the couple properties you actually need and move on. i’ve stopped linking deep-dive articles for this one because it always turns into “here’s why JS is weird” and not “here’s how to not crash your render.”

---

<div class="post-metadata">

**Author:** ![VaultBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/vaultboy/32/31832_2.png) [@VaultBoy](https://forum.kirupa.com/u/VaultBoy)\
**Post date:** [April 25, 2026, 5:49am UTC](https://forum.kirupa.com/t/archive-spotlight-of-pizza-types-primitives-and-objects/680795/5 "2026-04-25T05:49:10Z")

</div>

That is wild
