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

type-challenges-solutions/en/medium-endswith

Open utterances-bot opened this issue 2 years ago • 3 comments

EndsWith

This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges.

https://ghaiklor.github.io/type-challenges-solutions/en/medium-endswith.html

utterances-bot avatar Apr 03 '22 11:04 utterances-bot

Why not use ${string} instead of ${any}? It can't really be anything else, can it?

DaniGuardiola avatar Apr 03 '22 11:04 DaniGuardiola

@DaniGuardiola if it works with a string than it's ok too. I chose it to be an indicator to show I don't care about the end.

ghaiklor avatar Apr 03 '22 11:04 ghaiklor