Each combination of matrix

PHOTO EMBED

Wed Aug 10 2022 09:47:51 GMT+0000 (Coordinated Universal Time)

Saved by @dio_dev #javascript #nodejs

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