title: How to filter values from array and object comparison in javascript?
body: <p>Here, I have one object and one array I want to filter value comparing both array and object,</p>
  
  <p>object have multiple values see in below code <code>Reader, Author, Publisher..</code>, in array <code>Author and Reader</code> I want to compare them and want this type of results of <code>wanted result :- [1, 8]</code>
  this is my object</p>
  
  <pre><code>object1 = { 1: "Reader"
    8: "Author"
    3: "Publisher"
    9: "Site Editor"
    11: "Guest"
    12: "Editor"
    13: "Designer"
    14: "Publicist"
  }
  </code></pre>
  
  <p>this is my array</p>
  
  <pre><code>array1 = ["Reader", "Author"]
  </code></pre>