import { Obj } from '@ephox/katamari';
const byInnerKey = (data, tuple) => {
    const r = {};
    Obj.each(data, (detail, key) => {
        Obj.each(detail, (value, indexKey) => {
            const chain = Obj.get(r, indexKey).getOr([]);
            r[indexKey] = chain.concat([
                tuple(key, value)
            ]);
        });
    });
    return r;
};
export { byInnerKey };
//# sourceMappingURL=ObjIndex.js.map