Narrowing means checking if something is of a specific type yeah and this type of thing directly comes about when you're getting into types script. Type guarding like or type narrowing and type guarding it's so funny these things blend together in my mind a lot they really come into play when you're trying to narrow down what a specific type actually is exactly. I'm making my hands go wide to narrow you kind of look like the the visual to give folks a visual here he's kind of doing the gesture of like come on come on what's going on here A query selector can't can't guarantee that that value is going to be there because touch script can't guarantees anything.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode