Full Clone Data Object In Javascript

When Coding Vue, found problem of full clone data Object(Array), solved by the follow code

let objB = JSON.parse(JSON.stringify(objA))