Is it okay to use value from parameter properties as another property initial value in TypeScript?

前端 未结 0 1987
孤城傲影
孤城傲影 2021-02-04 07:54

Let\'s say i have code like this in TypeScript:

class A {
  constructor(
    private readonly firstName: string,
    private readonly lastName: string
  ) {
    c         


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