๐ŸŒ
W3Schools
w3schools.com โ€บ react โ€บ react_es6_spread.asp
React ES6 Spread Operator
React Compiler React Quiz React Exercises React Syllabus React Study Plan React Server React Interview Prep React Bootcamp ... The JavaScript spread operator (...) copies all or part of an existing array or object into another array or object.
๐ŸŒ
MDN Web Docs
developer.mozilla.org โ€บ en-US โ€บ docs โ€บ Web โ€บ JavaScript โ€บ Reference โ€บ Operators โ€บ Spread_syntax
Spread syntax (...) - JavaScript - MDN Web Docs - Mozilla
May 22, 2026 - The spread (...) syntax allows an iterable, such as an array or string, to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected. In an object literal, the spread syntax enumerates the properties of an object and adds the key-value ...
Discussions

Conditionally spreading objects in JavaScript
I wouldnโ€™t do that because future engineers may not get it. Iโ€™d in-line a ternary โ€ฆ(isActive ? user : {}) More on reddit.com
๐ŸŒ r/javascript
44
152
September 19, 2022
Two exceptional use cases for the spread operator you may not know of
const obj = { key: 'value', ...(isDog && { woof: true }) }; Instead of using &&, I suggest using an explicit ternary instead: isDog ? { woof: true } : {}. The reason is that, as written above, if isDog is false, then the operation will be ...(false). Spreading a boolean in an object works, because false does not have any enumerable properties. But it's probably not a good idea to rely on that behavior. More on reddit.com
๐ŸŒ r/javascript
94
251
September 20, 2019
Using the spread (...) operator with map()
Your code is not doing the same thing? Your code replaces the object in the array with just the string value of newName, the original code replaces it with a new object with 2 keys - name and newName More on reddit.com
๐ŸŒ r/learnjavascript
5
5
February 5, 2019
Split string using ES6 Spread ๐ŸŽ‰
I might be sold school since I prefer the former. The old syntax is self documenting, while the new is just confusing. More on reddit.com
๐ŸŒ r/webdev
241
847
April 21, 2018
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript โ€บ es6-spread-operator
ES6 Spread Operator - GeeksforGeeks
April 14, 2023 - Spread Operator is a very simple and powerful feature introduced in the ES6 standard of JavaScript, which helps us to write nicer and shorter code. The JavaScript spread operator is denoted by three dots (...). The spread operator helps the ...
๐ŸŒ
Kinstaยฎ
kinsta.com โ€บ home โ€บ resource center โ€บ blog โ€บ javascript tutorials โ€บ unleashing the power of javascript spread operator
Unleashing the Power of JavaScript Spread Operator - Kinstaยฎ
October 1, 2025 - The spread operator in JavaScript is a syntax introduced in ECMAScript 6 (ES6) that allows you to spread the elements of an iterable (such as arrays, strings, or objects), into another iterable or function call.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ js-spread-operator
What's the Spread Operator Used For in JavaScript? | DigitalOcean
July 11, 2022 - The spread operator is a feature of JavaScript introduced with ES6 that gives you access to the insides of an iterable object. An โ€œiterable objectโ€ is anything you can iterate over item by item, such as arrays, objects literals, and strings. These kinds of JavaScript types can be traversed ...
๐ŸŒ
JavaScript Tutorial
javascripttutorial.net โ€บ home โ€บ javascript array methods โ€บ javascript spread operator
The Practical Usages of JavaScript Spread Operator
May 8, 2024 - ES6 provides a new operator called spread operator that consists of three dots (...). The spread operator allows you to spread out elements of an iterable object such as an array, map, or set.
๐ŸŒ
Qirolab
qirolab.com โ€บ posts โ€บ javascripts-es6-spread-operator
JavaScript's ES6 Spread Operator: A Secret Weapon for Arrays & Objects | Qirolab
May 8, 2026 - The Spread Operator, represented by three dots ..., was introduced to JavaScript with the ES6 update. This operator is used with iterable objects like arrays, objects, and strings.
Find elsewhere
๐ŸŒ
Medium
medium.com โ€บ @anton.martyniuk โ€บ spread-and-rest-operators-in-javascript-a5d1f1ee60dd
Spread and Rest Operators in JavaScript | by Anton Martyniuk | Medium
March 21, 2024 - The syntax of spread operator is using three dots (โ€ฆ), and it allows to expand an array or object into its individual elements. Imagine you have two arrays and you want to combine them into a single array.
๐ŸŒ
Codewhoop
codewhoop.com โ€บ blog โ€บ javascript โ€บ understanding-spread-operator-in-javascript-es6.html
Understanding Spread Operator in JavaScript ES6 | Codewhoop
October 28, 2019 - ES6 introduced the spread operator in JavaScript which is represented by ... (three dots) and helps an expression to be expanded in places where multiple elements or variables or arguments are expected.
๐ŸŒ
DEV Community
dev.to โ€บ ellis22 โ€บ es6-spread-operator-unleashing-the-power-of-modern-javascript-p7o
ES6 Spread Operator: Unleashing the Power of Modern JavaScript - DEV Community
April 22, 2024 - The ES6 spread operator is a game-changer in modern JavaScript development, offering a concise and expressive syntax for array manipulation, object merging, and function parameter handling.
๐ŸŒ
HTML Goodies
htmlgoodies.com โ€บ home โ€บ javascript
The Revolutionary ES6 Rest and Spread Operators | HTML Goodies
August 23, 2022 - The ES6 Spread operator shares ... all the remaining function arguments into an array, the Spread operator expands iterables into individual elements....
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ javascript-spread-operator
JavaScript Spread Operator | GeeksforGeeks
Spread Operator is a very simple and powerful feature introduced in the ES6 standard of JavaScript, which helps us to write nicer and shorter code. The JavaScript spread operator is denoted by three dots (...). The spread operator helps the ...
Published ย  November 11, 2024
๐ŸŒ
Skay's Blog
blog.skay.dev โ€บ es6-spread-operator
ES6 - Spread Operator - Skay's Blog
October 23, 2020 - Introduction In this article, let us look at a very powerful yet simple feature introduced with ES6 or ES2015 version of JavaScript, the Spread Operator. Spread Operator The spread operator expands an iterable object into its individual elements. An ...
๐ŸŒ
Medium
medium.com โ€บ swlh โ€บ the-es6-spread-operator-7277979ebbc8
The JavaScript ES6 {โ€ฆspread} operator | by Vishal Raj | The Startup | Medium
June 6, 2020 - Here you saw that the personCopy.address also has pobox since the address object in personCopy points to the object of person, but does not have dateOfBirth. So as I mentioned, spread operator creates copy of object top level only. So how do you do deep clone.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-the-spread-operator-in-javascript
What is the spread operator in JavaScript?
Instead of having to pass each element like numbers[0], numbers[1] and so on, the spread operators allows array elements to be passed in as individual arguments. ... The Math object of Javascript does not take in a single array as an argument ...
๐ŸŒ
Medium
medium.com โ€บ @chirag.softpoint โ€บ javascript-spread-operator-rest-pattern-introduced-in-es6-d36b523da70f
JavaScript Spread Operator (โ€ฆ) & Rest Pattern โ€” Introduced in ES6 | by Chirag26 | Medium
September 19, 2023 - Spread (โ€ฆ) is also used to generate an array or spread elements from iterables. e.g. to spread string literals to elements or an array. ... Unlike the spread (โ€ฆ) operator expands(spreads) elements, the Rest pattern will collect the elements.
๐ŸŒ
Stack Abuse
stackabuse.com โ€บ spread-operator-in-javascript
Spread Operator in JavaScript
August 24, 2023 - In this tutorial, we'll explore one of the powerful features of the ES6 specification of JavaScript - the Spread Operator. Although the syntax is simple, somet...
๐ŸŒ
Medium
medium.com โ€บ @premnathm โ€บ spread-and-rest-operators-in-javascript-es6-23e5506dacb1
Spread and Rest Operators in JavaScript (ES6) | by Premnath M | Medium
April 12, 2025 - The `spread` operator works similarly for objects, allowing properties to be expanded and new ones added. ... The **rest operator**, on the other hand, collects multiple elements into a single array or object.