export function agruparPor(items, chave) {
    return items.reduce((acc, item) => {
        const key = chave(item);
        (acc[key] ??= []).push(item);
        return acc;
    }, {});
}
//# sourceMappingURL=group.js.map