DEV Community


Discussion on: Prevent Object Retrieval TypeError with &&

samanthaming profile image
Samantha Ming Author

You’re absolutely right! It’s one of those common JS saying, just because you can doesn’t mean you should. When it’s used appropriately, it’s super helpful. And if you abuse it, it becomes a code smell. Definitely something to be careful of. Thanks for pointing that out 👍