eslint报错guard-for-in,应该怎么修改?

 for (const i in this.keywords) {        count += this.keywords[i].list.length;
      }
报错 The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype guard-for-in

这个应该怎么修改?


达令说
浏览 3460回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript