1.0.3 • Published 8 years ago

math-combination v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago