DEV Community

Discussion on: Prevent Object Retrieval TypeError with &&

Collapse
 
samanthaming profile image
Samantha Ming

I typically use the “||” for setting the default values. Thanks for sharing your solution 🙂