Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
133 B
2
Indexable
Never
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

delay(1000).then(() => {
  // write function here
});