title: Trim objects from array where "I.active = false"
body: <p>How would I remove any object from my array <code>notafications</code> where <code>I.active = false</code>?</p>
  
  <p><strong>Clarification:</strong> 
  I am basically trying to have a certain object in the array "mark itself for deletion" once it performs what it needs to.</p>
  
  <p>I push the parameters to the array with this code:</p>
  
  <pre><code>notafications.push(notafication({
      font: "60px pong",
      baseline: "top",
      align: "left",
      color: "#FFFFFF",
      text: "this is a test",
      x: 100,
      y: 100
  }));
  </code></pre>
  
  <p>Then this function does its logical voodoo to it:</p>
  
  <pre><code>function notafication(I) {
  I.active = true;
  I.render = true;
  I.count = 3;
  I.flashTimer = setInterval(function() {
      if (!pingpong.paused) {
          I.count--;
          if (I.count%2 == 1) {
              I.render = true;
          }
          else {
              I.render = false;
          }
          if (I.count == 0) {
              clearInterval(I.flashTimer);
              I.render = false;
              I.active = false;
          }
      }
  },750);
  return I;
  }
  </code></pre>
  
  <p>And finally, here is the notification rendering segment of my gameloop. </p>
  
  <pre><code>if (render.notafication) {
      notafications.forEach(function notafication(I) {
          ctx.font = I.font;
          ctx.textAlign = I.align;
          ctx.textBaseline = I.baseline;
          ctx.fillStyle = I.color;
          if (I.render) {
              ctx.fillText(I.text,I.x,I.y);
          }
      });
  }
  </code></pre>
  
  <p><strong>Note:</strong>
  Yes, I know I have notification spelled wrong in my code. I've just continued to spell it wrong on purpose until this portion of the code is done. Then I'll find-replace it to the correct spelling.</p>