Typescript: Function find for array is working but if I check if it's returning a value with an if statement, it doesn't work

后端 未结 0 1090
走了就别回头了
走了就别回头了 2021-01-21 02:59

I have this code:

private currentCart : item []

  constructor(private pService : ProductService)
  {
    this.currentCart = []
  }

  add(product)
  {

    if(th         


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