Power Set

// Returns an array of all subsets of a string
console.log(powerSet("abc"));

// Returns an array of all subsets of an array
console.log(powerSet([1,2,3]));