1.0.0 • Published 5 years ago

get-combos v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

NPM Version CI codecov Dev Dependency Status

Get Combinations

Get all possible combinations / permutations of an array of items.

Table of Contents

Installation

npm install get-combos --save

Usage

import { combinations } from 'get-combos';

const result = combinations(['A', 'B']);

console.log(result);
// => [
//  ['A', 'A'],
//  ['A', 'B'],
//  ['B', 'A'],
//  ['B', 'B'],
// ]

Development

npm install
npm run build
1.0.0

5 years ago