UNPKG

@tidyjs/tidy

Version:

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

10 lines (7 loc) 240 B
import { fcumsum } from '../helpers/summation.js'; function cumsum(key) { const keyFn = typeof key === "function" ? key : (d) => d[key]; return (items) => fcumsum(items, keyFn); } export { cumsum }; //# sourceMappingURL=cumsum.js.map