export default function repeatArray(el: T, t: number): T[] { const arr: T[] = []; for (let i = 0; i < t; i ++) { arr.push(el); } return arr; }