title: How to auto remove elements out of an array after X minute(s) in JavaScript?
body: <p>I don't know if this is a silly idea. But let's say I have an array, I keep pushing new elements to it. And I want to set up logic so that any element that exists for <strong>5</strong> minutes will be automatically removed from that array.</p>
  
  <p>Any idea for the solution? </p>
  
  <p>Note that I don't want to keep the timestamp for any element, I want them to be removed automatically.</p>