starting...

This commit is contained in:
Bryan MacFarlane
2019-09-11 01:44:28 -04:00
parent 331b42dfcc
commit 198d21cc29
7 changed files with 4936 additions and 0 deletions

11
wait.js Normal file
View File

@@ -0,0 +1,11 @@
let wait = function(milliseconds) {
return new Promise((resolve, reject) => {
if (typeof(milliseconds) !== 'number') {
throw new Error('milleseconds not a number');
}
setTimeout(() => resolve("done!"), milliseconds)
});
}
module.exports = wait;