forked from polka_billy/porridger
Switched category data struct from Map to object
Moved lineByName function
This commit is contained in:
@ -101,5 +101,9 @@ const lineNames: Record<Lines, string> = {
|
||||
violet: "Фиолетовая",
|
||||
}
|
||||
|
||||
const lineByName = (name: string) =>
|
||||
lines.find(line => stations[line].has(name))
|
||||
|
||||
|
||||
export type { Lines }
|
||||
export { lines, stations, colors, lineNames }
|
||||
export { lines, stations, colors, lineNames, lineByName }
|
||||
|
Reference in New Issue
Block a user