javascript - Why set value to true using !0 -


i've seen script in property being set true using following.

someprop: !0 

i understand evaluate true, don't understand why set property in way. there reason?

i dont think there specific reason rather matter of programming , writting code. people things going crazy , think 1 of them.

!1 means false , !0 - means true


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -