Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1.88 KB

File metadata and controls

12 lines (8 loc) · 1.88 KB

Combination medium #array #application #string

by Homyee King @HomyeeKing

Take the Challenge

Given an array of strings, do Permutation & Combination. It's also useful for the prop types like video controlsList

// expected to be `"foo" | "bar" | "baz" | "foo bar" | "foo bar baz" | "foo baz" | "foo baz bar" | "bar foo" | "bar foo baz" | "bar baz" | "bar baz foo" | "baz foo" | "baz foo bar" | "baz bar" | "baz bar foo"`
type Keys = Combination<['foo', 'bar', 'baz']>

Back Share your Solutions Check out Solutions

Related Challenges

296・Permutation