35. implement Filter<T, A>
シェアしよう
- accepted / - tried
Filter<T, A>
を実装し、TからAにassignできるtypeを抽出してください。
type A = Filter<[1,'BFE', 2, true, 'dev'], number> // [1, 2]
type B = Filter<[1,'BFE', 2, true, 'dev'], string> // ['BFE', 'dev']
type C = Filter<[1,'BFE', 2, any, 'dev'], string> // ['BFE', any, 'dev']