I want to skip some records in a foreach loop.
For example, there are 68 records in the loop. How can I skip 20 records and start from record #21?
array.forEach(function(element,index){ if(index >= 21){ //Do Something } });
Element would be the current value of index. Index increases with each turn through the loop. IE 0,1,2,3,4,5; array[index];