StudyPlayground / TypeScript-Exercise-Challenges

Typescript exercise & challenges
2 stars 0 forks source link

Type Challenges 2693-EndsWith #65

Open kscory opened 4 months ago

kscory commented 4 months ago

답안을 작성해주세요.

wogha95 commented 3 months ago
type EndsWith<T extends string, U extends string> = T extends `${string}${U}` ? true : false;
kscory commented 3 months ago
type EndsWith<T extends string, U extends string> = T extends `${string}${U}` ? true : false
bananana0118 commented 3 months ago

type EndsWith<T extends string, U extends string> = T extends`${infer Start}${U}` ? true :false