JS's map method transforms datasets then and there; hence its use in React sometimes appears more convoluted than other available methods, like spread.
Object.assign pops up as a nuanced method I've recently encountered, and I'm curious when it's preferred to the spread method, especially among framework applications built upon JS.
I'm inclined to describing Object.assign as verbose: i.e. https://medium.com/@corinnemariekelly/object-assign-vs-spread-operator-577c889dbadc.
Outside of usage for very specific immediate rendering, however, both methods come up for managing dynamic data without overwriting, and across contexts that 1) don't invoke immediate changes to the copied datasets, or 2) must step through multiple data transformations based on multiple inputs, thereby themselves involving map in additional ways.
Are there some best patterns that combine across 2 or all 3 of the named methods?