# math-combination

> 数学组合/math-combination module

Latest version **1.0.3** (published 2015-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install math-combination
pnpm add math-combination
yarn add math-combination
bun add math-combination
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-12-15 |
| First published | 2015-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 王如锵 |
| Maintainers | likegun94 |
| Keywords | math, combination |

## Links

- npm: https://www.npmjs.com/package/math-combination
- Repository: https://github.com/likegun/math-combination
- Issues: https://github.com/likegun/math-combination/issues
- npm.io page: https://npm.io/package/math-combination

## Dependencies (2)

- [chai](https://npm.io/package/chai.md) ^3.4.1
- [lodash](https://npm.io/package/lodash.md) ^3.10.1

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2015-12-15
- 1.0.2 — 2015-12-14
- 1.0.1 — 2015-12-14
- 1.0.0 — 2015-12-14

## 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](https://github.com/likegun/math-combination/blob/master/test/index.js) for more details

---
_Source: https://npm.io/package/math-combination · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
