@thebarefootdev’s JavaScript tips
With ES6 syntax, working with arrays has never been easier. The spread operator in particular allows a much cleaner and functional approach, to adding, updating and removing items in an array without the previous hassle of looping, or the need to use pushing or popping!
Enjoy!
Leave a comment