I'd like to have multiple values output the same object in a key array.
"myobject": {
["foo", "bar"]: "foobar"
}
Is there a way in javascript to use an array as a key in a key array, so if I were to input either "foo"
or "bar"
, it would give me "foobar"
?