arraycombinations

This will return the combinations of an array without repitition

Usage no npm install needed!

<script type="module">
  import arraycombinations from 'https://cdn.skypack.dev/arraycombinations';
</script>

README

arraycombinations

arrays-union is used to find the number of combinations of an array without repitation

Install

npm install --save arraycombinations

Usage

const array_comb=require('arraycombinations');

array_comb.combinations([1,2,3,4]);

//result will be [[1],[1,2],[1,2,3],[1,2,3,4],[2],[2,3],[2,3,4],[3],[3,4],[4]]