const empty = (arr) => (arr.length = 0); // Orarr = [];
const empty = <T,_>(arr: T[]) => (arr.length = 0); // Orarr = [];