Implement lodash groupBy using array reduce. shaaji ; 1. function groupBy(arr, criteria) { ; 2. return arr.reduce((acc, item) => { ; 3. const key = criteria === ' ...
確定! 回上一頁