Creation of all combinations of array of arbitrary size using ECMA6 generators | Dark Hacker News