Skip to content

399 - Filter Out Items from Tuple #456

Open

Description

@hiroyaiizuka
type FilterOut<T extends any[], F> 
  = T extends [infer R, ...infer Rest]
      ? [R] extends [F]
        ? FilterOut<Rest, F>
        : [R, ...FilterOut<Rest, F>]
      : []

Activity

  1. added
    answer
    en
    on Dec 6, 2020
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

    399answeren

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions