typescript-book
typescript-book copied to clipboard
Truthy conversion: swtich from double negation to Boolean?
Looking at https://github.com/basarat/typescript-book/blob/120b111141abcffca11e63aa98639fb7d66073a6/docs/javascript/truthy.md?plain=1#L27 I see the book is using the !! for converting something to an explicit boolean value, which is always a bit hacky to read.
What about using the Boolean operator instead?