File size: 255 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import type { PlanFeature } from '../types';
export const buildPlanFeaturesDict = (
planFeatures: PlanFeature[]
): Record< string, PlanFeature > =>
planFeatures.reduce(
( dict, feature ) => ( {
...dict,
[ feature.id ]: feature,
} ),
{}
);
|