How can I retrieve an array from a class like the one below without using a switch statement, dictionary, or other collection to look up the name passed into the method?
export class ProcessOptions {
Arm = [{
name: 'Expedited Review ("ER") (not available for Level VI, Lung Cancer 2, or Foreign Claims)',
code: 25
},
{
name: 'Individual Review ("IR")',
code: 26
}
];
BW = [{
name: 'Expedited Review ("ER") (not available for Level VI, Lung Cancer 2, or Foreign Claims)',
code: 3
},
{
name: 'Individual Review ("IR")',
code: 4
}
];
GetProcessOptions(trust: string) {
return this.Arm;
}
}