Compute the cartesian product of an array.
Simple library to compute the cartesian product.
var product = require('cartesian-product');console.log(product([ [1,2], [4,5]]));// [ [1,4], [1,5], [2,4], [2,5] ]
Private Packages let you use the npm registry to host your own code and the npm command line to manage it. Learn more »
how? learn more