Can someone explain what's going on here?
let b;
({a:b}={a:'1234'});
console.log("b=", b);
when i run above code, i get output b=1234
.
I'm just trying to understand what's happening here. I'm new to typescript coming from Java background!
Can someone explain what's going on here?
let b;
({a:b}={a:'1234'});
console.log("b=", b);
when i run above code, i get output b=1234
.
I'm just trying to understand what's happening here. I'm new to typescript coming from Java background!