Using the spread operator to append/prepend elements to an array. It also returns the array rather than the length of the array, which I've never found that useful.
Software dev at Netflix | DC techie | Conference speaker | egghead Instructor | TC39 Educators Committee | Girls Who Code Facilitator | Board game geek | @laurieontech on twitter
Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
Using the spread operator to append/prepend elements to an array. It also returns the array rather than the length of the array, which I've never found that useful.
I wish there could be such an easy way to remove elements from array.
Spread operator is wonderful. What's crazy to me is how many different ways it can be used. Like arrays vs. objects.
oh man, Object spread is the best thing... maybe I should change my answer 🤔