Objects are associations of string keys and arbitrary values.
ES6 introduces maps, which are associations of arbitrary keys and arbitrary values.
var m = new Map([
['a', 'b'],
[1, 2],
[true, false]
]);
m.get('a');
There is no standard practice, but maps can be considered if you want to link values.
source
share