cartesian-product
Compute the cartesian product of an array.
Last updated 6 years ago by izaakschroeder .
CC0-1.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cartesian-product 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.2                                ...           latest (6 years ago)

3 Versions

  • 2.1.2                                ...           6 years ago
  • 2.1.1                                ...           6 years ago
  • 2.1.0                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |