UNPKG
@lets/wait
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.0.0
0.0.1
0.0.0
⏲ A promising wait function
omrilotan.com/wait/
omrilotan/wait
@lets/wait
/
dist
/
index.js
13 lines
(10 loc)
•
179 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
/** * A waiting promise *
@param
{
Number
}
ms
*
@return
{
Promise
} */
var
index
= ms =>
new
Promise
(
resolve
=>
setTimeout
(resolve, ms) );
module
.
exports
= index;