title: Return true or false using map arrays
body: <p>I need to return a boolean value to assign to my form's checkboxes by checking if the value exists in the array.</p>
  
  <p>For this I've been trying to use <code>.map()</code> by traversing a list of ID's and checking if this id exists within that list by returning an array of Boolean values.</p>
  
  <pre><code>const arrayOne = ['id1', 'id2', 'id3', 'id4', 'id5'];
  const arrayTwo = ['id4'];
  const booleanValues = [false, false, false, true, false]; // expected outcome
  </code></pre>
  
  <p>How to check if the id exists in another array returning boolean values using <code>.map()</code> in a simplified and readable way?</p>