22 / 26
read the snippet · pick its Big-O
function groupByStatus(orders) {return orders.reduce((acc, o) => {(acc[o.status] ||= []).push(o);return acc;}, {});}
function groupByStatus(orders) {return orders.reduce((acc, o) => {(acc[o.status] ||= []).push(o);return acc;}, {});}