What does !! (double exclamation point) mean?
It is just two ! boolean not operators sitting next to each other. The reason to use this idiom is to make sure that you receive a 1 or a 0. Actually it returns an empty string which numifys to 0. It’s usually only used in numeric, or boolean context though. You will often see … Read more