UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

13 lines (12 loc) 249 B
/** Extract the part of **`U`** that matches **`M`** * @param U to extract from * @param M to select with * @returns **union** * @example * ```ts * ``` */ export type Select<U extends any, M extends any> = U extends M ? U : never