I have some rules lookups that are based on state.. I am trying to think of a way to make accessing these easy without setting up some sort of intermediate step.
I'm imagining something like:
rules = {
['AK','FL','NY']: {a: 278},
['CA','LA','TX']: {a: 422}
}
console.log(rules['AK']); //278
console.log(rules['TX']); //422
I know that's not possible.. but wondering what the simplest way to achieve something like that would be