type-challenges
type-challenges copied to clipboard
2688 - StartsWith
type StartsWith<T extends string, U extends string> = T extends `${U}${infer _}`
? true
: false;