UNPKG

@prelude/array

Version:

Array module.

6 lines 194 B
/** @returns last element of an array or `undefined`. */ const maybeLast = (values) => { return values[values.length - 1]; }; export default maybeLast; //# sourceMappingURL=maybe-last.js.map