EndsWith medium #template-literal

by jiangshan @jiangshanmeta

Take the Challenge    简体中文

Implement `EndsWith` which takes two exact string types and returns whether `T` ends with `U` For example: ```typescript type a = EndsWith<'abc', 'bc'> // expected to be true 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