Skip to content

Commit

Permalink
syntax simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed Nov 22, 2023
1 parent eb670dc commit 07c1073
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,4 @@ export const combineChunks = chunks => {
return full
}

export const sleep = milliseconds =>
new Promise(res => {
setTimeout(res, milliseconds)
})
export const sleep = ms => new Promise(res => setTimeout(res, ms))

0 comments on commit 07c1073

Please sign in to comment.