TypeScript Nullish Coalescing Operator: Always Have a Fallback Value

A fallback value without null and undefined with the Nullish Coalescing operator

Photo by Tianyi Ma on Unsplash

Nullish coalescing operator

Released in TypeScript 3.7 version, we have a new logical operator available. It’s called and looks like this . But what…

To keep reading this story, create a free account.

Already have an account? Sign in

Jeroen Ouwehand

Written by

🔥Writing new articles every month — Software Developer from The Netherlands — Angular-TypeScript-Flutter-Golang-Node.js — Twitter/Github: Jeroenouw

Level Up Coding

Coding tutorials and news. The developer homepage gitconnected.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade