array-cartesian

1.0.0 • Public • Published

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

Author: Srikanth Enjamoori

Package Sidebar

Install

npm i array-cartesian

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.47 kB

Total Files

3

Last publish

Collaborators

  • srikanthenjamoori