In today's episode of talking about awesome JavaScript features, we are going to turn our attention to the Spread operator(...) or Spread syntax. A...
For further actions, you may consider blocking this person and/or reporting abuse
Really great article, @brandonbawe!π
I found it very nice that you gave a list of points where the spread operator is useful π
One thing I would add would be, in the Math functions section, that you can use the spread operator to pass array elements as arguments to a function in more use cases. One example would be calling a function with an array of arguments:
This is the same as if you would be calling the
sum
function with(1, 2, 3, 4)
as βhardcodedβ arguments.Keep it up!π
Thank you for your input Bruno. It is highly appreciated.
Thank you for you review Abhay. The Spread operator is really an awesome feature that makes JavaScript more fun to work with.
nice examples!
Thank you Maxi
spread is good but i find does not work recursively. try lodash merge function
Okay I'm going to try that out. Thank you for your input.
yes, It's Good for me , Thank you so much
You are welcome Munir.
Thank you for sharing
Good explanation of something that has been confusing for me!
That's Great Article, i learned something new about spread operator use case.
Math.min and Math.max i think its really useful.
Thank you for your review sir.