Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…
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] ]
What happens when npm’s amazing community gets together to share with one another? Buy a ticket »
how? learn more