AllCombinations medium #template-literal #infer #union

by 蛭子屋双六 @sugoroku-y

Take the Challenge    日本語

Implement type ```AllCombinations``` that return all combinations of strings which use characters from ```S``` at most once. For example: ```ts type AllCombinations_ABC = AllCombinations<'ABC'>; // should be '' | 'A' | 'B' | 'C' | 'AB' | 'AC' | 'BA' | 'BC' | 'CA' | 'CB' | 'ABC' | 'ACB' | 'BAC' | 'BCA' | 'CAB' | 'CBA' ```
Back Share your Solutions Check out Solutions