DEV Community

loading...

Discussion on: Prevent Object Retrieval TypeError with &&

Collapse
samanthaming profile image
Samantha Ming Author

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