Skip to content

alterass/cartesian_product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

求笛卡尔积

install

pnpm add https://github.com/alterass/cartesian_product.git

use

import cartesian_product from 'cartesian_product';
const result = cartesian_product([
  1,2,3,
  'a','b'
]);
console.log(result);
// output:
// [
//   [ 1, 'a' ],
//   [ 1, 'b' ],
//   [ 2, 'a' ],
//   [ 2, 'b' ],
//   [ 3, 'a' ],
//   [ 3, 'b' ]
// ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published