export const noop = ( ) => undefined ; export function center ( str , length , char = ' ' ) { return char . repeat ( ( length - str . length ) / 2 ) + str ; } export async function sleep ( ms ) { return await new Promise < void > ( resolve => { window . setTimeout ( ( ) => { resolve ( ) ; } , ms ) ; } ) ; }