What are Double shots ( !! ) in JavaScript ?
What is !! in JavaScript ? where & how we can use it ? Let's discuss some feature of !! "Double Shots or Double Exclamation" in JavaScript.
So where it can be helpful, let's say we have some production grade application where we have some code that g...
axay.hashnode.dev3 min read
George Jempty (Dexygen)
Software, Powerful and Simple
I used to use
!!foobarBut now use
Boolean(foobar); // function, NOT object preceded by newAs it expresses the intent more clearly.