Jun 27, 2023
What about:
[ hasCat && 'cat', hasDog && 'dog', 'cow'].filter(Boolean)
?
What about:
[ hasCat && 'cat', hasDog && 'dog', 'cow'].filter(Boolean)
?
Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.