4 lines
93 B
JavaScript
4 lines
93 B
JavaScript
export default (time = 0) =>
|
|
new Promise(resolve => {
|
|
setTimeout(resolve, time);
|
|
});
|