Computes the cartesian product of the given list of subsets.
According to the performance tests with (matcha)[https://www.npmjs.com/package/matcha], it's faster than (cartesian-product)[https://www.npmjs.com/package/cartesian-product] if you work with non-integer subsets like string or object arrays.
It's even faster when it's written in es5 but I wanted to implement it in es6.
$ npm i -g compute-product
// [[1, 4], [1, 5], [2, 4], [2, 5]]
$ npm run bench
$ npm test
$ npm run build
If you have any idea about how to make it faster, pull requests are welcome. ;)