Leon4gr45's picture
Include updated package-lock.json (part 9)
cd6720a verified
Raw
History Blame Contribute Delete
234 Bytes
export function nextTick(callback: () => void) {
setTimeout(callback, 0)
}
export function nextTickAsync(callback: () => void) {
return new Promise((resolve) => {
setTimeout(() => {
resolve(callback())
}, 0)
})
}