DEV Community

Discussion on: Safe Navigation Operator? Bang! Bang Bang!!

Collapse
 
pssingh21 profile image
Peeyush Man Singh

Bang! as a postfix operator in typescript is unsafe I agree. But JavaScript Bangs aren't unsafe . They are used just to convert any value to a Boolean equivalent.

Collapse
 
myleftshoe profile image
myleftshoe

No sorry, it was a joke - bang! bang! bang! sounds like a triple gunshot which is obviously unsafe.