(name: string)
| 20 | }; |
| 21 | |
| 22 | export const getComparisonModel = (name: string) => { |
| 23 | const model = Object.entries(COMPARISON_MODEL_NAMES).find(([, value]) => value.name === name); |
| 24 | if (!model) return null; |
| 25 | return model[0] as ComparisonModel; |
| 26 | }; |
| 27 | |
| 28 | export const getComparisonModelName = (key: ComparisonModel) => { |
| 29 | const model = Object.entries(COMPARISON_MODEL_NAMES).find(([id]) => id === key); |
no outgoing calls
no test coverage detected