Prevent TypeScript from compiling rest operators to for loops in compiled code

前端 未结 0 886
渐次进展
渐次进展 2021-01-27 12:22

Given this TypeScript:

get(...args) {
 return Reflect.get(...args);
}

Typescript will compile to:



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