Skip to content

Latest commit

 

History

History

Pick

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Pick

A helper to pick by object's props.

Usage

import type {Pick} from 'flown'

;({a: 1, b: 2}: Pick<{ a: 1, b: 2 }, ['a', 'b']>)
;({a: 1, b: undefined}: Pick<{ a: 1, b: 2 }, ['a']>)
;({a: undefined, b: undefined}: Pick<{ a: 1, b: 2 }, ['c']>)