JavaScript's spread syntax has been an extremely useful tool while I've been working extensively with immutable data structures for a React/Redux project.
Calling code "elegant" can be a difficult idea to wrap your head around, especially for novices. So here are a few examples of "elegant" functional code.