🌐
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 ...
🌐
W3Schools
w3schools.com › howto › howto_js_spread_operator.asp
How To Use the Spread Operator (...) in JavaScript
The JavaScript spread operator (...) expands an iterable (like an array) into more elements.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › javascript-spread-operator
JavaScript Spread Operator - GeeksforGeeks
ES6 has added spread property to object literals in javascript. The spread operator (...) with objects is used to create copies of existing objects with new or updated values or to make a copy of an object with more properties. Let's take an example of how to use the spread operator on an object,
Published   January 16, 2026
🌐
Programiz
programiz.com › javascript › spread-operator
JavaScript Spread Operator
The JavaScript spread operator (...) allows an iterable to be expanded in places where zero or more arguments or elements are expected. In this tutorial, you will learn about the JavaScript spread operator with the help of examples.
🌐
freeCodeCamp
freecodecamp.org › news › javascript-spread-and-rest-operators
JavaScript Spread and Rest Operators – Explained with Code Examples
February 8, 2024 - The spread operator, denoted by three consecutive dots (...), is primarily used for expanding iterables like arrays into individual elements. This operator allows us to efficiently merge, copy, or pass array elements to functions without explicitly iterating through them.
🌐
Medium
eleftheriabatsou.medium.com › javascript-spread-operator-explained-with-examples-a38caf568ffd
JavaScript Spread Operator Explained (with Examples) | by Eleftheria Batsou | Medium
September 30, 2024 - // Spread in function call const numbers = [1, 2, 3]; console.log(Math.max(...numbers)); // Output: 3 // Rest in function definition function multiply(multiplier, ...numbers) { return numbers.map(num => num * multiplier); } console.log(multiply(2, ...
🌐
JavaScript Tutorial
javascripttutorial.net › home › javascript array methods › javascript spread operator
The Practical Usages of JavaScript Spread Operator
May 8, 2024 - The spread operator (...) unpacks the elements of the odd array. Note that ES6 also has the three dots ( ...) which is a rest parameter that collects all remaining arguments of a function into an array. function f(a, b, ...args) { console.log(args); ...
🌐
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.
🌐
W3Schools
w3schools.com › react › react_es6_spread.asp
React ES6 Spread Operator
The JavaScript spread operator (...) copies all or part of an existing array or object into another array or object.
Find elsewhere
🌐
DEV Community
dev.to › marinamosti › understanding-the-spread-operator-in-javascript-485j
Understanding the Spread Operator in JavaScript - DEV Community
September 23, 2019 - Another great way to use the spread operator is to make a copy of an array or an object. In JavaScript when you assign an object or array to a variable you're actually storing something called the "pointer", which sort of works like the address of where that object is being stored.
🌐
Mimo
mimo.org › glossary › javascript › spread-operator
JavaScript Spread Operator: Syntax, Usage, and Examples
The spread operator (...) expands arrays, objects, and strings into individual values. Use it to copy data, merge arrays and objects, update state cleanly, and pass array values into functions without extra steps. ... Become a full-stack developer. Learn HTML, CSS, JavaScript, and React as well as NodeJS, Express, and SQL
🌐
DigitalOcean
digitalocean.com › community › tutorials › js-spread-operator
What's the Spread Operator Used For in JavaScript? | DigitalOcean
July 11, 2022 - The spread operator essentially ‘scooped’ out the insides of the foo array and spread the values across the new array in bar. It’s important to note the brackets around the spread operator, [...foo]. The spread operator spreads these values within a new object of the same type; in this case, an array literal.
🌐
Stack Abuse
stackabuse.com › spread-operator-in-javascript
Spread Operator in JavaScript
August 24, 2023 - Both the Spread Operator and Rest Parameter share the same syntax i.e. the three magical dots .... But they behave exactly opposite to each other. As a beginner, sometimes this may be confusing. The bottom-line to understand the behavior is to understand the context in which it is being used. As we learned, the spread operator expands the contents of an iterable.
🌐
CodeShack
codeshack.io › home › references › javascript › ...
JavaScript Spread (...) Operator: Syntax & Examples
June 23, 2026 - JavaScript spread (...) expands arrays and objects into individual elements — for copying, merging and passing arguments. Learn spread vs rest, with live examples.
🌐
DEV Community
dev.to › hkp22 › javascript-spread-operator-advanced-techniques-and-best-practices-5cbn
JavaScript Spread Operator: Advanced Techniques and Best Practices - DEV Community
June 5, 2024 - // Example with arrays const numbers = [1, 2, 3]; const moreNumbers = [...numbers, 4, 5, 6]; console.log(moreNumbers); // Output: [1, 2, 3, 4, 5, 6] // Example with objects const person = { name: 'Alice', age: 25 }; const updatedPerson = { ...person, age: 26, city: 'New York' }; ...
🌐
Medium
medium.com › coding-at-dawn › how-to-use-the-spread-operator-in-javascript-b9e4a8b06fab
How to use the spread operator (…) in JavaScript
November 19, 2020 - In JavaScript, spread syntax refers to the use of an ellipsis of three dots (…) to expand an iterable object into the list of arguments.
🌐
W3Schools
w3schools.com › jsref › jsref_oper_spread.asp
JavaScript Spread Operator
The ... operator can pass arguments to functions: const numbers = [23,55,21,87,56]; let minValue = Math.min(...numbers); let maxValue = Math.max(...numbers); Try it Yourself » · The ... operator can copy arrays: const arr1 = [1, 2, 3]; const ...
🌐
Scaler
scaler.com › home › topics › spread operator in javascript
JavaScript Spread Operator - Scaler Topics
February 23, 2024 - In the above example of the spread operator in JavaScript, we create a function that takes three arguments and performs an addition operation, and prints the answer to the console. Also, there is an array that contains three elements.
🌐
Codecademy
codecademy.com › docs › javascript › spread operator
JavaScript | Spread Operator | Codecademy
January 8, 2025 - The Spread Operator in JavaScript, represented by three dots (...), is used to expand or unpack elements of arrays, objects, or other iterables into individual elements.
🌐
DEV Community
dev.to › nyagarcia › understanding-the-javascript-spread-operator-from-beginner-to-expert-5bdb
Understanding the JavaScript Spread Operator - From Beginner to Expert - DEV Community
September 27, 2019 - To put it simply, the spread operator '…' spreads the items that are contained in an iterable (an iterable is anything that can be looped over, like Strings, Arrays, Sets…) inside a receiver (A receiver is something that receives the spread values). Here are several simple examples with Arrays that will allow you to understand it better: