unique-subsets
v1.0.0
Published
Finds all possible unique subsets of a superset.
Downloads
1
Readme
unique-subsets
Finds all possible unique subsets of a superset.
Example:
let uniqueSubsets = require('unique-subsets');
uniqueSubsets([1, 2, 3]);
// Returns: [ [ 1 ], [ 2 ], [ 3 ], [ 1, 2 ], [ 1, 3 ], [ 2, 3 ], [ 1, 2, 3 ] ]