I would like to have a list of objects whose:
- keys are unrestricted and unique for each object
- values are string arrays
For example:
const obj1 = {
'animals': ['cat', 'dog', 'mouse'],
'fruits': ['apple', 'orange', 'strawberry', 'kiwi', 'grape']
}
const obj2 = {
'name': ['Einstein', 'Hitler'],
'country': ['Nigeria', 'Afganistan', 'Vietnam', 'Egypt']
}
How do I declare them?