cartesian-product

Compute the cartesian product of an array.

CC0-1.0 3 个版本
安装
npm install cartesian-product
yarn add cartesian-product
pnpm add cartesian-product
bun add cartesian-product
README

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] ]
版本列表
2.1.2 2014-11-08
2.1.1 2014-11-08
2.1.0 2014-11-08