UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

11 lines (10 loc) 263 B
/** Get the intersection of **`U1`** & **`U2`** * @param U1 to check similarities with * @param U2 to check similarities against * @returns **union** * @example * ```ts * ``` */ export type Intersect<U1 extends any, U2 extends any> = U1 & U2 | U2 & U1