title: Best way to find a matching value from an array with another set of values using Angular
body: <p>I get following array from a service (roles of a logged in user)
  roles = ['MM_VIEW', EM_VIEW]</p>
  <p>I have a requirement where I need to check whether the user have any one of the below roles and based on that I need to do some logic
  MM_VIEW, MM_EDIT, MM_DELETE</p>
  <p>So, I was wondering how to proceed with this, to create a enum or directly use OR condition like below</p>
  <pre><code>    if (user.roles.includes('MM_VIEW') || user.roles.includes('MM_EDIT') || user.roles.includes('MM_DELETE')) {
        this.appImgPIIError.emit(true);
      } else {
        this.appImgPIIError.emit(false);
      }
  </code></pre>
  <p>This works, but somehow having hard coded values in my component is not seems a good idea to me. ANy suggestions are welcome. Thanks.</p>