UNPKG

@tidyjs/tidy

Version:

Tidy up your data with JavaScript, inspired by dplyr and the tidyverse

8 lines (6 loc) 215 B
function last(key) { const keyFn = typeof key === "function" ? key : (d) => d[key]; return (items) => items.length ? keyFn(items[items.length - 1]) : void 0; } export { last }; //# sourceMappingURL=last.js.map