Matthew
@matthew
TIL you can just do .filter(Boolean) instead of .filter((prop) => !!prop)
6 replies
1 recast
20 reactions
dylan
@dylsteck.eth
i haven't used this syntax before but saw it in a repo the other week and was surprised it exists -- much cleaner IMO
1 reply
1 recast
2 reactions
Matthew
@matthew
so much cleaner!
0 reply
0 recast
0 reaction