UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

12 lines 329 B
/** * Gets a Promise that resolves after specific time * @param ms{Number=} - delay in ms * @return {Promise} * @example * // How to sleep/delay in JS? * wait(3000).then(() => { * console.log("Runs after 3 sec!"); * }) */ export function wait(ms?: number | undefined): Promise<any>; //# sourceMappingURL=index.d.ts.map