ES6 find 和 filter 的区别
发现有个find,测试一番之后发现const list = [{'name':'1',index:1},{'name':'2'},{'name':'1'}]let list2 = list.find(i=>i.name==='1')let list3 = list.filter(i=>i.name==='1')console.log(list);[ { name: ...