Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

type-challenges-solutions/en/medium-lastindexof #248

Open
utterances-bot opened this issue Oct 2, 2022 · 2 comments
Open

type-challenges-solutions/en/medium-lastindexof #248

utterances-bot opened this issue Oct 2, 2022 · 2 comments

Comments

@utterances-bot
Copy link

LastIndexOf

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-lastindexof.html

Copy link

zcfan commented Oct 2, 2022

There is not built-in Equal in TypeScript. I believe you're talking about the imported one from @type-challenges/utils?

Copy link
Owner

ghaiklor commented Oct 3, 2022

Yeah, I guess. I don't remember why I used it, but it is definitely against the rules here :)

However, implement Equal on our own should not be a problem. Seems like a couple of conditional types or maybe single one is enough.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants