UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

7 lines (6 loc) 188 B
/** * Delays an async function using await given an optionally provided duration */ export function delay(duration) { return new Promise(resolve => setTimeout(resolve, duration)); }