3min chapter

Syntax - Tasty Web Development Treats cover image

TypeScript Fundamentals × Type Narrowing, Guards, and Predicates

Syntax - Tasty Web Development Treats

CHAPTER

JavaScript Script Basics - Double Exclamation Point Tricks

The next one is just basic straight up JavaScript by doing just a straight up truthy or falsy check. You should probably be cognizant of if perhaps you know values that can equate to falsy that aren't truthy truth or falsyValues like things like a number right like a number of zero equates to false so that might not be in your in your cards. One thing you could always do with this is do that double exclamation point trick which some people hate, but I understand how it works.

00:00

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