UNPKG

@tidyjs/tidy

Version:

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

11 lines (9 loc) 261 B
function rowNumber(options) { var _a; const startAt = (_a = options == null ? void 0 : options.startAt) != null ? _a : 0; return (items) => { return items.map((_, i) => i + startAt); }; } export { rowNumber }; //# sourceMappingURL=rowNumber.js.map