UNPKG

@tidyjs/tidy

Version:

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

15 lines (11 loc) 349 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); 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); }; } exports.rowNumber = rowNumber; //# sourceMappingURL=rowNumber.js.map