0

So I have an Array users const users = [] and in this Array, multiple users are stored (this is the output when I console.log it)

[
  {
    id: 'S-lOjtJKAikqmyrVAAAD',
    name: 'username1',
    room: 'IxUY6WpDNK'
  },
  {
    id: 'KtW6IzYkFNHNT4wPAAAF',
    name: 'username2',
    room: 'IxUY6WpDNK'
  }
] 

So my question is: How do I get just the username values of both Objects (just the 'username1' and 'username2')?

0 Answers0