title: How to change value for object property in array if property not match with compared value?
body: <p>I want to return array with properties which not matched by <code>valuesToCompare</code> array values</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const arr = [
  {value: "test1", name: "name1"},
  {value: "test2", name: "name1"},
  {value: "test3", name: "name1"},
  {value: "test3", name: "name2"},
  {value: "test4", name: "name2"},
  ]
  
  const valuesToCompare = ["test1", "test2", "test3", "test4"]</code></pre>
  </div>
  </div>
  </p>
  <p><strong>expected output</strong></p>
  <pre><code>[
  {value: &quot;test4&quot;, name: &quot;name1&quot;},
  {value: &quot;test1&quot;, name: &quot;name2&quot;},
  {value: &quot;test2&quot;, name: &quot;name2&quot;},
  ]
  </code></pre>