Thankyou that makes sense. Spread operator has been a tough one to learn for me. I always feel like i kind if have an idea of what it is doing in one situation but struggle to use it myself.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks James!
Because the
Set
object implements the iterator property, we can use the ES6 spread syntax to cast the values from theSet
into an array.It really is doing the same thing as the second part of that example, where I called
Array.from()
.Thankyou that makes sense. Spread operator has been a tough one to learn for me. I always feel like i kind if have an idea of what it is doing in one situation but struggle to use it myself.