const repeat = (str, numberOfTimes) => str.repeat(numberOfTimes);// Orconst repeat = (str, numberOfTimes) => Array(numberOfTimes + 1).join(str);
const repeat = (str: string, numberOfTimes: number): string => str.repeat(numberOfTimes);// Orconst repeat = (str: string, numberOfTimes: number): string => Array(numberOfTimes + 1).join(str);