1.0.10 • Published 5 years ago
@deebah/loop v1.0.10
Loop is a simple npm module that lets you loop through an array.
Example Usage
const loop = require('@deebah/loop');
loop([1, 2, 3, 4], 1000, (arr, index) => {
console.log(arr[index]);
});
Parameters:
- Array, the array you want to loop through.
- Speed you want to loop through the array, in milliseconds.
- Callback, parameters are the array you passed and the index you are through the array.