set06

Merge two product lists into one

6 / 26
read the snippet · pick its Big-O
function combineLists(featured, recommended) {
const out = [];
for (const p of featured) out.push(p);
for (const p of recommended) out.push(p);
return out;
}