type-challenges-solutions
type-challenges-solutions copied to clipboard
type-challenges-solutions/en/medium-endswith
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
Why not use ${string}
instead of ${any}
? It can't really be anything else, can it?
@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.