title: Return True If Contains in String in ES6
body: <p>How do i return <code>true</code> if <code>location.pathname</code> is found in of these strings is found in ES6?</p>
  <pre><code>  const noActionMenuRoutes = [
      '/master/employees',
      '/employees/dashboard',
      '/employees/requests',
      '/projects/myprojects',
    ];
  
    const noActionMenus = () =&gt; {
      if (location.pathname.some(noActionMenuRoutes)) {
        return true;
      } else {
        return false;
      }
    };
  </code></pre>