Type alias DropMatch<A, Criteria>

DropMatch<A, Criteria>: number extends A["length"]
    ? ArrayPlus.DropMatch<A, Criteria>
    : TuplePlus.DropMatch<A, Criteria>

⚗️ transform

Drops entries matching Criteria in array or tuple A.

Type Parameters

  • A extends Readonly<unknown[]>

  • Criteria

Example

type R = DropMatch<Array<string | undefined>, undefined> // string[]
type R = DropMatch<Array<string>, string> // never[]
type R = DropMatch<Array<1 | 2>, number> // never[]

Generated using TypeDoc