UNPKG

@tidyjs/tidy

Version:

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

12 lines (8 loc) 298 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function last(key) { const keyFn = typeof key === "function" ? key : (d) => d[key]; return (items) => items.length ? keyFn(items[items.length - 1]) : void 0; } exports.last = last; //# sourceMappingURL=last.js.map