- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
restrictions = restrictions.filter(restriction =>
_.find(solution, item => (
(item.from === restriction.from) && (item.to === restriction.to)
))
).map(restriction => {
const solutionTransmission = _.find(
solution,
item => ((item.from === restriction.from) && (item.to === restriction.to))
);
if (solutionTransmission) {
return restriction;
}
return null;
}).filter(restriction => restriction);