WebStorm 中未解析的函数或方法 filter()
Unresolved function or method filter() in WebStorm
我用的是WebStorm 2017.3.1
关于这个代码
router.get('/costs/:id', ((req, res) => {
let costsId = Number(req.params.id);
let cost = costs.filter(cost => cost.id === costsId);
res.send(cost);
})
);
我在 costs.filter
上收到弱警告:
Unresolved function or method filter()
我该如何修复此警告?
已知问题,请关注WEB-23188更新
我用的是WebStorm 2017.3.1
关于这个代码
router.get('/costs/:id', ((req, res) => {
let costsId = Number(req.params.id);
let cost = costs.filter(cost => cost.id === costsId);
res.send(cost);
})
);
我在 costs.filter
上收到弱警告:
Unresolved function or method filter()
已知问题,请关注WEB-23188更新