i have some existing coe that contains this expression and i can not understand how does it work. please can anyone explain to me the expression please? this.activeScenario = { ...scenario };
Asked
Active
Viewed 23 times
0
-
1this is the Typescript spread operator, see: https://stackoverflow.com/questions/46235436/angular-whats-meaning-of-three-dots-in-ngrx – user1884155 Mar 09 '21 at 14:28
-
Check https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax as well – Giannis Mar 09 '21 at 14:29
-
Thank you so much i really appreciate it – Héla SOUISSI Mar 09 '21 at 14:57