export default function last(arr: T[]): T { return arr[arr.length - 1]; }