Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 1.76 KB

File metadata and controls

14 lines (9 loc) · 1.76 KB

EndsWith medium #template-literal

by jiangshan @jiangshanmeta

Take the Challenge    简体中文

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

For example:

type a = EndsWith<'abc', 'bc'> // expected to be false
type b = EndsWith<'abc', 'abc'> // expected to be true
type c = EndsWith<'abc', 'd'> // expected to be false

Back Share your Solutions Check out Solutions

Related Challenges

2688・StartsWith