double exclamation marks in javascript code example
Example 1: javascript double exclamation mark
const isIE8 = !! navigator.userAgent.match(/MSIE 8.0/);
console.log(isIE8); // returns true or false
Example 2: javascript double exclamation mark
!oObject // inverted boolean
!!oObject // non inverted boolean so true boolean representation