interface Last { (list: ArrayLike): T | undefined; (list: string): string; } /** * Returns the last element of the given array. * * @param {Array} arr * @return {*} * @example * * last(['fi', 'fo', 'fum']); //=> 'fum' * last([]); //=> undefined */ declare const _default: Last; export default _default;