tslint错误使用箭头函数而不是函数表达式

tslint error Use arrow function instead of function expression

我有 tslint 警告,我是 es6 的新手,使用它仍然有些困难 syntax.so 我不完全确定如何在箭头函数中转换它。

这是我的代码:

 let deletedQuestions = origQuestions.filter(function(obj) {
            return !updatedQuestions.some(function(obj2) {
                return obj.value == obj2.value;
            });
          });
          console.log(deletedQuestions);

          let addedQuestions = updatedQuestions.filter(function(obj) {
            return !origQuestions.some(function(obj2) {
                return obj.value == obj2.value;
            });
          });

我相信会是

let deletedQuestions = origQuestions.filter(obj =>
  !updatedQuestions.some(obj2 => obj.value == obj2.value)) console.log(deletedQuestions);
let addedQuestions = updatedQuestions.filter(obj =>
  !origQuestions.some(obj2 => obj.value == obj2.value))

对吗?