UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

17 lines (15 loc) 419 B
import {SelectKeys} from './SelectKeys' import {Match} from '../Any/_Internal' import {Pick} from './Pick' /** Extract the fields of `O` that match `M` @param O to extract from @param M to select fields @param match (?=`'default'`) to change precision @returns [[Object]] @example ```ts ``` */ export type Select<O extends object, M extends any, match extends Match = 'default'> = Pick<O, SelectKeys<O, M, match>>