cartesian-product

v2.1.2
Compute the cartesian product of an array.
cartesian cartesian product array

cartesian-product

Compute the cartesian product of an array.

build status coverage license version downloads

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] ]
npm i cartesian-product

Metadata

  • CC0-1.0
  • Whatever
  • Izaak Schroeder
  • released 11/8/2014

Downloads

Maintainers