I need to save some data in a param via Js. When I try to reuse the data, the param I get would be a proxy() obj, and I can not access the data of it. For example: in my .js file:
@track
historyData = []
method() {
var item = {}
item.id = 'a'
item.data = 'xxx'
this.historyData.push(item)
}
get() {
// here I get a proxy() object, the data is saved in originalTarget.
this.historyData.find(item => item.id === 'a').data
}
any solution?