Wondering what’s next for npm?Check out our public roadmap! »

    get-combos
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    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
    

    Install

    npm i get-combos

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.49 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar