TypeError:收益。过滤器不是函数

时间:2019-06-02 00:05:54

标签: arrays node.js reactjs next.js

这是我的代码,有错误

TypeError:Income.filter不是函数

https://gyazo.com/a4b3f601cf9cd18a5cce0cf9d134f656 https://gyazo.com/3220b3e1b54364af6ca533606434a9ae

  filterUser = email => {
const { earnings } = this.props.user;
return earnings.filter(earning => earning.email === email); };

0 个答案:

没有答案