ParamQuery grid support forum
General Category => Help for ParamQuery Select => Topic started by: maDawi on May 11, 2018, 11:49:26 am
-
How to clone the datamodel into array without effect of datamodel. when I change the all value of my array into string, the datamodel value change it too into string. how to fix it thank you.
-
this problem was fixed thank this is my solution JSON.parse(JSON.stringify(datamodel.data)).
-
Another solution is to use Object.assign:
var new_data = Object.assign({}, datamodel.data);