rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
19 lines (17 loc) • 510 B
text/typescript
import {Match} from '../Any/_Internal'
import {Select as OSelect} from '../Object/Select'
import {ListOf} from '../Object/ListOf'
import {ObjectOf} from './ObjectOf'
import {List} from './List'
/**
Extract the entries of `L` that match `M`
```ts
```
*/
export type Select<L extends List, M extends any, match extends Match = 'default'> =
ListOf<OSelect<ObjectOf<L>, M, match>>