vuejs-challenges
vuejs-challenges copied to clipboard
16 - until
// 你的答案
`
const count = ref(0)
/**
- Implement the until function */
function until(initial:Ref
async function increase() { count.value = 0 setInterval(() => { count.value++ }, 1000) await until(count).toBe(3) console.log(count.value === 3,'**') // Make sure the output is true }
Increase
`