業(yè)務(wù)中經(jīng)常有以下類似的代碼場景,有更友好的寫法推薦嗎?_.forEach(this.updateTripInfoObj.people.data,(item,index)=>{if(item.name===val.name){this.updateTripInfoObj.people.data.splice(index,1);returnfalse;}returntrue;});
更簡潔的ES6 JS代碼風(fēng)格
哆啦的時(shí)光機(jī)
2019-04-27 22:19:53