Return to site

ANGULAR TIP: Immutability on object

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;
  
}