relevants@feddit.de to Programmer HumorEnglish · 1 year agoJavaScript Pro Tip!feddit.deimagemessage-square18fedilinkarrow-up1109arrow-down10
arrow-up1109arrow-down1imageJavaScript Pro Tip!feddit.derelevants@feddit.de to Programmer HumorEnglish · 1 year agomessage-square18fedilink
minus-squareamki@feddit.delinkfedilinkEnglisharrow-up4·1 year agoIt also works for booleans: If you want variable x to become boolean just negate it twice: !!b
It also works for booleans: If you want variable x to become boolean just negate it twice: !!b