1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1x 224x 497x 497x 31x 1x | 'use es6'; import Team from './Team'; export default class NbaEmoji { static getEmoji(teamAbbreviation) { for (let team of Team.enumValues) { if (team.abbreviation == teamAbbreviation) { return team.emoji; } } throw new Error('Unknown team abbreviation'); } } |