delay
Invokes the provided function after ms
milliseconds.
- Use
setTimeout()
to delay execution offn
. - Use the spread (
...
) operator to supply the function with an arbitrary number of arguments.
Invokes the provided function after ms
milliseconds.
setTimeout()
to delay execution of fn
....
) operator to supply the function with an arbitrary number of arguments.