declare global { interface Array { /** * The last element of the array. * * @example * ```typescript * const arr = [1, 2, 3]; * arr.last; // => 3 * ``` */ last: any[] extends this ? T | undefined : T; } interface ReadonlyArray { /** * The last element of the array. * * @example * ```typescript * const arr = [1, 2, 3]; * arr.last; // => 3 * ``` */ last: T | undefined; } } export {}; //# sourceMappingURL=last.d.ts.map