UNPKG

@tidyjs/tidy

Version:

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

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