type-challenges icon indicating copy to clipboard operation
type-challenges copied to clipboard

2688 - StartsWith

Open ryuji-1to opened this issue 2 years ago • 0 comments

type StartsWith<T extends string, U extends string> = T extends `${U}${infer _}`
  ? true
  : false;

ryuji-1to avatar Apr 25 '23 00:04 ryuji-1to