We'd like to use analytics cookies to understand which symbols people look up, so we know what to research next. They are not used for advertising and we set none of them unless you say yes. What we store.
Three dots unpacking a collection into its elements.
Also known as: Rest operator
Three dots before a value expand it into its individual elements — spreading a list into arguments, or copying the contents of one collection into another.
ECMAScript defines the three dots as spread syntax where a list of values is expected, and as rest syntax in a parameter list where it gathers the remaining arguments.
Contexts: Software
That the same three dots both spread and gather depending on position is a recognised source of confusion for people learning the language.
Contexts: Software
Three small dots set in a row along the baseline with even spacing between them.
The typographic ellipsis marks omitted words; the spread operator is three separate full stops that expand a value.
Three dots again, in a completely different setting: in code they expand a value, in an interface they open a menu.