const obj = { 5000: () => { console.log(1) }, 9000: () => { console.log(2) }, // etc } Object.keys(obj).forEach(t => setTimeout(obj[t], t))