open_in_new
content_copy
arr.reduce((pre, cur)=> [].concat.apply([], pre.map(t => cur.map(g => t + g))));