getSumKm(actualKeyPoints: PatrolPlanOwnerDetail[]) {
return actualKeyPoints.reduce(
(acc: number, currentPoint: PatrolPlanOwnerDetail) => {
return acc + currentPoint.completePathLength;
},
0
);
}
reduce累加
最新推荐文章于 2023-10-22 20:06:17 发布