Skip to content

Commit 771a666

Browse files
committed
refactor: use for of
1 parent 53ea83d commit 771a666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/scheduler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const queueJob = (job: Function) => {
1313
}
1414

1515
const flushJobs = () => {
16-
for (let i = 0; i < queue.length; i++) {
17-
queue[i]()
16+
for (const job of queue) {
17+
job()
1818
}
1919
queue.length = 0
2020
queued = false

0 commit comments

Comments
 (0)