Will
first time i've seen !!x used that wasn't llm slop Am I sleeping on this operator?
1 1
Will
I guess I’ve never needed to cast to boolean though that’s probably moreso due to js implicitly casting it most of the times I’d want a Boolean check if(!!notNull) == if(notNull) no?
1 1
Samuel
@samuel.fm
that is indeed true, but sometimes it’s good to covert to a nice predictable Boolean, for example with .filter(). you can also use Boolean() which does the same thing except wordier
1 1
Will
Showed this snippet off to my boss and I think I killed him