1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/frontend/src/component/changeRequest/changesCount.ts
2022-11-24 12:29:14 +01:00

5 lines
191 B
TypeScript

import { IChangeRequest } from './changeRequest.types';
export const changesCount = (changeRequest: IChangeRequest) =>
changeRequest.features.flatMap(feature => feature.changes).length;