Creation of all combinations of array of arbitrary size using ECMA6 generators
gist.github.com