detain.js 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) }, })