我使用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
上发出弱势警告:
未解决的函数或方法过滤器()
已知问题,请关注WEB-23188进行更新