function isSupported() {
  if (document.exitFullscreen) {
    return true;
  } else if (document.webkitExitFullscreen) {
    return true;
  } else if (document.mozCancelFullScreen) {
    return true;
  } else if (document.msExitFullscreen) {
    return true;
  }

  return false;
}
/**
 * Returns a boolean value indicating whether the fullscreen API is supported
 * by the client browser
 *
 * @returns {boolean}
 */
Returns a boolean value indicating whether the fullscreen API is supported
by the client browser

@returns {boolean}
Returns a boolean value indicating whether the fullscreen API is supported by the client browser @returns { boolean }
function isSupported() {
  if (document.exitFullscreen) {
    return true;
  } else if (document.webkitExitFullscreen) {
    return true;
  } else if (document.mozCancelFullScreen) {
    return true;
  } else if (document.msExitFullscreen) {
    return true;
  }
  return false;
}
function isSupported ( ) { if ( document . exitFullscreen ) { return true ; } else if ( document . webkitExitFullscreen ) { return true ; } else if ( document . mozCancelFullScreen ) { return true ; } else if ( document . msExitFullscreen ) { return true ; } return false ; }
Returns a boolean value indicating whether the fullscreen API is supported
 by the client browser
Returns a boolean value indicating whether the fullscreen API is supported by the client browser