title: How to avoid skipping elements of an array while looping on it
body: <p>l have an Angular project that rounds the <code>moment.js</code> time object to next nearest 15 minute interval to loop satellite image weather. I pushed <code>moment.js</code> time as array and when I run that array for looping, some elements are being skipped.</p>
  <p>example : <code>[&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;];</code></p>
  <p>when I run the code I got like that: <code>[&quot;1&quot;, &quot;3&quot;, &quot;5&quot;];</code></p>
  <p>Any solution to run the array without skipping any elements?</p>
  <p><a href="https://stackblitz.com/edit/angular-g8q8j4?file=src/app/app.component.ts" rel="nofollow noreferrer">Live Code</a></p>