3.0.1 • Published 4 months ago
detain v3.0.1
Library brings serial delay for performing tasks on array of promises or regular items
Example
const array = await detain({
array: ['1', 2, 8, 155];
delayMs: 1000,
each: (item) => asyncFunction(item),
onEach: (resolvedValue) => {
console.log(resolvedValue)
},
})