help
help copied to clipboard
Rest operator with await inside ternary
Details
Hey, could you help me to understand why the first example works well but the second one returns a syntax error?
The third one is clear why can return a syntax error.
Node.js version
v16.14.2
Example code
No response
Operating system
Mac OS 12.5.1
Scope
repl
Module and version
No module