0

I have a map with the value

'1' => User {
    id: '1',
    username: 'Clyde',
    discriminator: '0000',
    avatar: 'https://discordapp.com/assets/f78426a064bc9dd24847519259bc42af.png',
    bot: true,
    lastMessageID: null,
    lastMessage: null 
}

But when I get the id and try to get it using Map.get(id); it returns undefined and when I console.log the id variable I am using it returns 1 without the single quotes. So I am wondering how do I get the single quotes and convert it to a string so it returns the map value.

thank you

Caltrop
  • 895
  • 1
  • 7
  • 20
BigSmoke
  • 25
  • 1
  • 1
  • 4

0 Answers0