title: javascript check if the values ​of an array are present as a key in an object
body: <p>I need to detect if the values ​​of an array are present in an object as a key</p>
  <p>I tried this way</p>
  <pre><code>var color = {
               1: &quot;Red&quot;,
               2: &quot;Blue&quot;,
               3: &quot;Yellow&quot;,
               4: &quot;Violet&quot;,
               5: &quot;Green&quot;,
               7: &quot;Orange&quot;
              };
  
  var myColor = [3, 1];
  
  for(const [key, value] of Object.entries(color)){
  
      var bgIco = (myColor.includes(key)) ? '[' + key + ']' + value + ' - Yes' : '[' + key + ']' + value + ' - No';
  
      console.log(bgIco);
  
  }
  </code></pre>
  <p>But it always comes back no</p>
  <p>If in the includes function I manually put a number in the object instead of the <strong>key</strong> variable then it works, what am I doing wrong?</p>