Skip to content

2070 - Drop Char #32009

Closed
Closed

Description

@PassionZale
type DropChar<S, C> = S extends `${infer First}${infer Rest}`
	? First extends C 
		? DropChar<Rest, C>
		: `${First}${DropChar<Rest, C>}`
	: S

Activity

  1. added
    answer
    zh-CN
    on Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2070answerzh-CN

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions