title: Check whether url from api data contain a particular string
body: <p>I have my JSON data from API stored in map now one of its data is named with URL and contains URL of the sites I have to check whether the URL contains a particular string or not so that I can apply different styling to the div on HTML</p>
  <pre><code>let x = `${ values.url }`;
        if (x.contains(&quot;codeforces&quot;)) {
          console.log(&quot;Yes&quot;);
        }
  </code></pre>
  <p>I am getting error while using this:</p>
  <p><a href="https://i.stack.imgur.com/YElIK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YElIK.png" alt="console error" /></a></p>
  <p>Please help me with this.</p>