JSFiddle - React, Tailwind, and code Playground
JavaScript
if((function(){ /*test*/ }).toString().match('test').length === 0) {
alert ("NO SUPPORT");
} else {
alert ("SUPPORTED");
}
if((function(){ /*test*/ }).toString().match('test').length === 0) {
alert ("NO SUPPORT");
} else {
alert ("SUPPORTED");
}