Whenever i’ve tried to use the chaining method in an express app it doesnt recognize it
?.map((user) => [user.player.name, user.player.gold])
^
SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Maybe there’s a config file which I need to edit? Or maybe this isn’t allowed? Not sure, any guidance would be appreciated!