js数组常用遍历方法(forEact、map、filter、reduce、every、some、findIndex)
letarr=[{id:1,name:'apple',count:50,price:2},{id:2,name:'banana',count:40,price:3},{id:3,name:'orange',count:30,price:4},{id:5,name:'watermelon',count:20,price:5},{id:5,name:'strawberry',count:100,pri