@tidyjs/tidy
Version:
Tidy up your data with JavaScript, inspired by dplyr and the tidyverse
14 lines (10 loc) • 425 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function assignGroupKeys(d, keys) {
if (d == null || typeof d !== "object" || Array.isArray(d))
return d;
const keysObj = Object.fromEntries(keys.filter((key) => typeof key[0] !== "function" && key[0] != null));
return Object.assign(keysObj, d);
}
exports.assignGroupKeys = assignGroupKeys;
//# sourceMappingURL=assignGroupKeys.js.map