JSFiddle - React, Tailwind, and code Playground

JavaScript

try
{
    jQuery.contains(window, document);
}
catch(err)
{
    alert('An exception occurred: '+err);
}