UNPKG

@qctrl/website-validator

Version:

Q-CTRL Website Validator provides a set of utility tools that validate HTML pages and hyperlinks.

13 lines (12 loc) 268 B
/** * Delay code execution by number of milliseconds * * @param ms - Number of milliseconds the delay should be * * @returns Promise to await */ export default function delay(ms) { return new Promise((resolve) => { setTimeout(resolve, ms); }); }