mc

math-combination

数学组合

Showing:

Popularity

Downloads/wk

6

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

19.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

math-combination(数学组合)

Install

npm i math-combination --save

Usage

var combination = require('math-combination')
var arr = [1, 2, 3]

//Get all conditions that conbine two element of the the arr(different order same condition)
combination.cmn(arr, 2)

//Get all conditions that conbine two element of the the arr(different order same condition and element can repeat)
combination.cmnWithRepetition(arr, 2)

Note

Only support for array of String or Number


See test for more details

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100