Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.85 KB

File metadata and controls

15 lines (10 loc) · 1.85 KB

StartsWith medium #template-literal

by jiangshan @jiangshanmeta

Take the Challenge    简体中文

Implement StartsWith<T, U> which takes two exact string types and returns whether T starts with U

For example

type a = StartsWith<'abc', 'ac'> // expected to be false
type b = StartsWith<'abc', 'ab'> // expected to be true
type c = StartsWith<'abc', 'abcd'> // expected to be false

Back Share your Solutions Check out Solutions

Related Challenges

2693・EndsWith

o/badge/-2693%E3%83%BBEndsWith-d9901a" alt="2693・EndsWith"/>