fordelay
v1.0.0
Published
For loops with delay
Downloads
7
Readme
fordelay
JS for loops with delay
Install
yarn add fordelay
Usage
import fordelay from "fordelay"
// fordelay(delay ms, items object or array, callable)
var items = [
"0 after 0s",
"1 after 2s",
"2 after 4s",
"3 after 6s"
]
fordelay(2000, items, function(key, value)
{
console.log(value)
}).then(() => console.info("done"))