Author: Not specified Language: javascript
Description: Not specified Timestamp: 2018-05-10 11:30:39 +0000
View raw paste Reply
  1. var list = readHugeList();
  2.  
  3. var nextListItem = function() {
  4.     var item = list.pop();
  5.  
  6.     if (item) {
  7.         // process the list item...
  8.         nextListItem();
  9.     }
  10. };
View raw paste Reply