cartesian-product
Version:
Compute the cartesian product of an array.
21 lines (16 loc) • 663 B
Markdown
# cartesian-product
Compute the cartesian product of an array.





Simple library to compute the cartesian product.
```javascript
var product = require('cartesian-product');
console.log(product([
[1,2],
[4,5]
]));
// [ [1,4], [1,5], [2,4], [2,5] ]
```