@strong-roots-capital/sorted-cartesian-product
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

sorted-cartesian-product Build status npm version codecov

Cartesian product of a list including only sorted elements

Install

npm install @strong-roots-capital/sorted-cartesian-product

Use

import { sortedCartesianProduct } from '@strong-roots-capital/sorted-cartesian-product'

let array = [1, 2, 3]
sortedCartesianProduct(array))
//=> [[ 1, 2 ], [ 1, 3 ], [ 2, 3 ]]

Package Sidebar

Install

npm i @strong-roots-capital/sorted-cartesian-product

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.9 kB

Total Files

4

Last publish

Collaborators

  • amchelle
  • hamroctopus