UNPKG

@tidyjs/tidy

Version:

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

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