# @nguyenphutrong/array-combination

> All the possibilities of a free combinatorial array ## Install ``` npm i @nguyenphutrong/array-combination ```

Latest version **1.0.3** (published 2021-07-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @nguyenphutrong/array-combination
pnpm add @nguyenphutrong/array-combination
yarn add @nguyenphutrong/array-combination
bun add @nguyenphutrong/array-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 | 2021-07-23 |
| First published | 2021-07-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Trong Nguyen |
| Maintainers | nguyenphutrong |

## Links

- npm: https://www.npmjs.com/package/@nguyenphutrong/array-combination
- Repository: https://github.com/nguyenphutrong/array-combination
- Homepage: https://github.com/nguyenphutrong/array-combination#readme
- Issues: https://github.com/nguyenphutrong/array-combination/issues
- npm.io page: https://npm.io/package/@nguyenphutrong/array-combination

## Recent versions

- 1.0.3 (latest) — 2021-07-23
- 1.0.2 — 2021-07-22
- 1.0.1 — 2021-07-21
- 1.0.0 — 2021-07-21

## README

# array-combination
All the possibilities of a free combinatorial array
## Install
```
npm i @nguyenphutrong/array-combination
```

## Usage
```js
import { arrayCombination } from '@nguyenphutrong/array-combination';

const options = [
    ['a', 'b', 'c'],
    ['1', '2', '3', '4']
];

const variants = arrayCombination(options);

console.log(variants);
```
Output:

```js
[
  [ 'a', '1' ], [ 'b', '1' ],
  [ 'c', '1' ], [ 'a', '2' ],
  [ 'b', '2' ], [ 'c', '2' ],
  [ 'a', '3' ], [ 'b', '3' ],
  [ 'c', '3' ], [ 'a', '4' ],
  [ 'b', '4' ], [ 'c', '4' ]
]
```

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