Jun 28, 2023
Thanks!
In fact, I often use the pattern:
[
isX && [array],
...
].flat(Infinity).filter(Boolean)
Specially when formatting output.
Thanks!
In fact, I often use the pattern:
[
isX && [array],
...
].flat(Infinity).filter(Boolean)
Specially when formatting output.
Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.