7
I saw its use in the source code of Jquery, for example:
fired: function() {
return !!fired;
}
Code snippet located between lines 3222 and 3224 of version 2.1.4 Uncompressed.
She’s something native to Javascript or created between the functionalities of the Jquery?
Can be found in other languages, if yes for example?
OBS.: I would like an example of the use in the answer.
Recast question after discussion meta.
-1 This question has already been asked
– Wallace Maxters
Discussion on the goal: http://meta.pt.stackoverflow.com/questions/4455/questions-duplicates-votos-positivos-pode-isso
– Wallace Maxters
@Dorivalzanetto this can happen, there is no problem. As long as you do not start to open duplicates in series. Everyone has made a duplicate once in their life.
– Jorge B.
This question is being discussed at the finish line: Duplicates shall be negative?
– Jorge B.
Just a note for those arriving now, the use of double exclamation can be replaced by the use of Boolean:
Boolean(myVar)
instead of!!myVar
– Rafael Kendrik