rambda
Version:
Lightweight faster alternative to Ramda
18 lines (16 loc) • 551 B
text/typescript
import {Filter as OFilter} from '../Object/Filter'
import {TupleOf} from '../Object/TupleOf'
import {Match} from '../Any/_Internal'
import {ObjectOf} from './ObjectOf'
import {Tuple} from './Tuple'
/** Filter out of **`T`** the entries that match **`M`**
* @param T to remove from
* @param M to select entries
* @param match to change precision (?=`'default'`)
* @returns **`any[]`**
* @example
* ```ts
* ```
*/
export type Filter<T extends Tuple, M extends any, match extends Match = 'default'> =
TupleOf<OFilter<ObjectOf<T>, M, match>>