@tidyjs/tidy
Version:
Tidy up your data with JavaScript, inspired by dplyr and the tidyverse
16 lines (13 loc) • 473 B
JavaScript
import { expand } from './expand.js';
import { leftJoin } from './leftJoin.js';
import { replaceNully } from './replaceNully.js';
function complete(expandKeys, replaceNullySpec) {
const _complete = (items) => {
const expanded = expand(expandKeys)(items);
const joined = leftJoin(items)(expanded);
return replaceNullySpec ? replaceNully(replaceNullySpec)(joined) : joined;
};
return _complete;
}
export { complete };
//# sourceMappingURL=complete.js.map