JSFiddle - React, Tailwind, and code Playground

by 3rror404

JavaScript

function test() {
  if (document.cookie.indexOf("*cookiex*") > -1) {
    return "Yes";
  } else {
    return "No";
  }
}

console.log(test());