How to use “??=” syntax in Typescript

后端 未结 0 1024
轻奢々
轻奢々 2021-01-06 09:34
let a;
a ??= \'asd\'
console.log(a); // asd

When I run the above js in the browser console without any problems

However, when I run in typesc

相关标签:
回答
  • 消灭零回复
提交回复
热议问题