DEV Community

Discussion on: The tale of three dots in Javascript

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀 • Edited

Everything is syntax, valid or no it's still parsed and lexed to build an AST, so "part of the syntax" seems broad. If it isn't an operator perhaps it's more like a comma or semi token? But those describe white space, spread does a heck of a lot more, I'm not sure what it is now... Sorry to nitpick 😅