Open BruceJohnJennerLawso opened 8 years ago
want some way for a team object to identify which franchise it belongs to, something like a function call that takes a list of possible answers, then returns the top one if theres a match, an empty string if not.
ie getFranchise(franchises):
where franchises looks like
[['Seekers', 'SEEKZERS'], ['Pucked Up', 'Pucked UP'], ['The Mighty Dads']]
want some way for a team object to identify which franchise it belongs to, something like a function call that takes a list of possible answers, then returns the top one if theres a match, an empty string if not.
ie getFranchise(franchises):
where franchises looks like
[['Seekers', 'SEEKZERS'], ['Pucked Up', 'Pucked UP'], ['The Mighty Dads']]