/**
* @returns last element of an array.
* @throws {TypeError}
*/constlast = (values) => {
if (!values.length) {
thrownewTypeError('Expected non empty array to get last element.');
}
return values[values.length - 1];
};
exportdefault last;
//# sourceMappingURL=last.js.map