This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // loop over the array using the iteratee function at the specified interval | |
| function intervalForEach(array, iteratee, delay) { | |
| let current = 0 | |
| let interval = setInterval(() => { | |
| if (current === array.length) { | |
| clearInterval(interval) | |
| } else { |
NewerOlder