powerset-stream
A readable stream that generates all the possible combinations of subsets of the set given in input.
Install
Node.js
npm install powerset-stream
Usage
; /* Prints: [ 1 ][ 2 ][ 3 ][ 1, 2 ][ 1, 3 ][ 2, 3 ][ 1, 2, 3 ] */
Credits
- Mario Casciaro - Author