0

i have a one field that after the user. starts with a number, which ends up giving a missing ) after argument list, how could I solve this? I can't change it because I'm getting 3v3Victories from an api

.addField("Wins 3v3", user.3vs3Victories, true)

  • 1
    You have to use `[]` notation for key names that start with numbers ... `user['3vs3Victories']` – charlietfl Jun 26 '21 at 22:06
  • @charlietfl it is returning 'undefined' – gari30voos Jun 26 '21 at 22:10
  • 3
    You will need to provide a [mre] that demonstrates it then. As noted in the duplicate chain this is the only way to work with keys that start with numbers die to js engines expect a dot before a number to be a decimal – charlietfl Jun 26 '21 at 22:11

0 Answers0