This is regarding to how to retain value of an object. I have 1 object as a "objData" which has my main result. I am storing result of objData in 1 variable.
var result = objData;
After this i am removing some properties from objData as per below.
var result1 = objData.remove(x=>x.something..);
Then if i check "result" then it is also updated because it's reference type object is there any way to retain same value for "result" if i am removing some properties during creation of "result1"?