js 数组对象过滤

this.tableData = this.tableData.filter((ele, index) => {
              return data.find( prop => {
                return prop.categoryId == ele.categoryId ? (ele.limitAmount = prop.limitAmount) : 0
              })
            })

 

 

posted @ 2022-08-01 11:20  AKJERRTS  阅读(711)  评论(0)    收藏  举报