UNPKG
@doegis/core
Version:
latest (0.1.0)
0.1.0
DOE GIS API
@doegis/core
/
core
/
nextTick.js
3 lines
(1 loc)
•
147 B
JavaScript
View Raw
1
2
3
const
o=[];
function
t
(
t
){o.
push
(t),
1
===o.
length
&&
queueMicrotask
((
()=>
{
const
t=o.
slice
();o.
length
=
0
;
for
(
const
o
of
t)
o
()}))}
export
{t
as
nextTick};