use function over const lambda

pull/11301/head
Michael Telatynski 2019-11-25 12:53:07 +00:00
parent 0a209fc340
commit 73990acf7a
1 changed files with 3 additions and 1 deletions

View File

@ -57,4 +57,6 @@ export function deleteIndexedDB(dbName) {
}); });
} }
export const sleep = (ms) => new Promise((resolve) => { setTimeout(resolve, ms); }); export function sleep(ms) {
return new Promise((resolve) => { setTimeout(resolve, ms); });
}