array-cartesian
v1.0.0
Published
Module for getting all possible combinations of values from given 'n' arrays[D[D[D[D[D[Dnumber of arrays
Downloads
1
Maintainers
Readme
Get All possible combinations of values from given 'n' number of arrays arguments.
Installation
npm install array-cartesian
Usage
You can just instantiate the module and call the functions whereever applicable.
var cp = require('array-cartesian');
var arr1 = [1,2,3];
var arr2 = ['a','b','c'];
var arr3 = ['x',4,'z'];
cp.permute(arr1,arr2,arr3);
Installing array-cartesian
[sudo] npm install array-cartesian