UNPKG

@arrows/array

Version:
11 lines (10 loc) 246 B
declare type Last = <T>(arr: T[]) => T; /** * Retrieves the last element of the array. * * @param arr Initial array * @returns Last element (undefined for an empty array) */ declare const last_: Last; export { last_ }; export default last_;