我使用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
上得到了微弱的警告
未解析函数或方法筛选器()
我怎样才能修正这个警告?
发布于 2017-12-25 09:24:13
已知问题,请按WEB-23188更新
https://stackoverflow.com/questions/47969929
复制