rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
19 lines (17 loc) • 564 B
text/typescript
import {Intersect as OIntersect} from '../Object/Intersect'
import {Match} from '../Any/_Internal'
import {ListOf} from '../Object/ListOf'
import {ObjectOf} from './ObjectOf'
import {List} from './List'
/**
Get the intersecting entries of `L` & `L1`
(If `match = 'default'`, no type checks are done)
@param L to check similarities with
@param L1 to check similarities against
@returns [[List]]
@example
```ts
```
*/
export type Intersect<L extends List, L1 extends List, match extends Match = 'default'> =
ListOf<OIntersect<ObjectOf<L>, ObjectOf<L1>, match>>