javascript spread operator

Learn JavaScript Spread Operator in 1 minute

Table of content

    ???? Spread Operator was introduced in ES6

    ???? You can use it with an iterable array or object

    ???? It allows expanding an array into its components

    ???? It helps in the concatenation of an array or object properties

    ???? It is different from rest parameter

    Spread Syntax:

    Three dots (...)

    Example (Array):

    • Combine or concatenate two arrays into new arra


    Example (Object):

    • Combine or concatenate two objects into new object

    Spread operator javascript object


    Our Coding guides: 

    Leave a comment

    All comments are moderated before being published.

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.