UNPKG

172 BJavaScriptView Raw
1const nextTick = (fn, ...args) => {
2 fn = typeof fn === 'function' ? fn.bind(null, ...args) : fn
3 const timerFunc = setTimeout
4 timerFunc(fn)
5}
6
7export default nextTick