export function arrayPadEnd(array: T[], amount: number, data: T) { for (let i = 0; i < amount - array.length; i++) array.push(data); }