I was used lodash function like that _.CloneDeep for object array copy but I need shallow copy of this array Please consider the following code:
@observable.ref trades: Array<TradeType> = [];
@action attachNewTrade = (trade: TradeType): Array<TradeType> => {
let newTrades = _.CloneDeep(this.trades)
newTrades.push(trade)
this.trades = newTrades
}
I am using React+Mobx in this project Especially I need Observable function for this, not toJSON of immutable.js