title: Delete a key under a condition in Javascript object
body: <p>I need to write a <strong>removeVowelKeys</strong> function that takes an object and removes all keys that begin with a vowel. The register does not matter.</p>
  <p>For example, I have an object</p>
  <pre><code>const vowelsObj = {
    alarm: 'hello',
    chip: 100,
    isValid: false,
    Advice: 'Learn it hard',
    onClick: 'make it great again',
  }
  </code></pre>
  <p>The result of a function's work should look like this:</p>
  <pre><code>vowelsObj === {
    chip: 100,
  }
  </code></pre>
  <p>This is what I've already written</p>
  <pre><code>function removeVowelKeys(object) {
    const num = Object.keys(object);
  
    for( let i = 0; i &lt; num.length; i++) {
      for (let key in object) {
      if (key.startsWith('a'||'e'||'i'||'o'||'u'||'y')) {
        delete object[key];
          }
      }
      }
      return object;
  }
  </code></pre>
  <p>but it removes only the first field that starts with a vowel and the others stay. Any ideas how it can be done?</p>