JavaScript

Spread Operator

Definition

The `...` syntax that expands an iterable (array, string, object) into individual elements. Used for copying arrays/objects, merging, and passing multiple arguments to functions.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms