Home > @gglib/utils > pick

pick() function

Picks properties from the given source object if they are not undefined

Signature:

export declare function pick<T>(src: T, ...rest: string[]): Partial<T>;

Parameters

Parameter Type Description
src T
rest string[]

Returns:

Partial<T>