cartesian-product

2.1.2 • Public • Published

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] ]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.2
    18,613
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.2
    18,613
  • 2.1.1
    1
  • 2.1.0
    1

Package Sidebar

Install

npm i cartesian-product

Weekly Downloads

15,674

Version

2.1.2

License

CC0-1.0

Last publish

Collaborators

  • izaakschroeder