while learning js, I saw an article suggesting that arrays should be modeled, and now I have some doubts.
original array:
[{id:"111",title:"title1",body:"body1"},
{id:"222",title:"title2",body:"body2"}]
id
want to learn to use Object.assign or other methods, but no matter how to write it wrong, ask for advice
knows that writing like this can only copy the original array
Object.keys (org). Map (key = > Object.assign ({}, org.key])
but how to propose a layer?