Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

5117 - Without #33093

Open
pea-sys opened this issue May 2, 2024 · 0 comments
Open

5117 - Without #33093

pea-sys opened this issue May 2, 2024 · 0 comments
Labels
5117 answer Share answers/solutions to a question en in English

Comments

@pea-sys
Copy link

pea-sys commented May 2, 2024

// your answers
type ToUnion<U> = U extends unknown[]? U[number]: U
type Without<T extends any[], U> = T extends [infer S,...infer R]?
 S extends ToUnion<U> ?
  Without<R ,U> : [S,...Without<R, U>] :[]
@pea-sys pea-sys added answer Share answers/solutions to a question en in English labels May 2, 2024
@github-actions github-actions bot added the 5117 label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5117 answer Share answers/solutions to a question en in English
Projects
None yet
Development

No branches or pull requests

1 participant