报告
函数
表达式。 建议将其转换为
箭头函数
。
示例:
arr.map(function(el) {return el + 1})
应用快速修复后,代码如下所示:
arr.map(el => el + 1)