JavaScript Jabber cover image

Functional Programming with Ian Schwartz - JSJ 574

JavaScript Jabber

CHAPTER

JavaScript - Pattern Matching

Maybe holds a thing that might be there or might not be there. Non existence is a problem in JavaScript because, you know, we already have two types for defining non existence. So I rewrote maybe to use either under the hood. It's like an area with a single element versus an area with zero elements. And being able to write methods that call that can either map over it, if it's something or nothing.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner