Use snippet below to make immutable an argument and then use it safely:
test(param:any):void{ const val={...param}; val.name="ok"; return val; }
Use snippet below to make immutable an argument and then use it safely:
test(param:any):void{ const val={...param}; val.name="ok"; return val; }