src/helpers/stationHelpers.js
// Filter out all stations where train doesn't stop:
Filter out all stations where train doesn't stop.
Filter out all stations where train doesn ' t stop .
function lineStopsAtStation(stationDataItem) {
    const linesArray = String(stationDataItem['Daytime Routes']).split(' ');
    if (linesArray.indexOf(lineId) > -1) {
      return true;
    }
    return false;
  }
function lineStopsAtStation ( stationDataItem ) { const linesArray = String ( stationDataItem [ 'Daytime Routes' ] ) . split ( ' ' ) ; if ( linesArray . indexOf ( lineId ) > - 1 ) { return true ; } return false ; }
Filter out all stations where train doesn't stop:
Filter out all stations where train doesn ' t stop :