Skip to content

Welshman Docs / @welshman/lib / prop

Function: prop() ​

prop<T>(k): (x) => T

Defined in: packages/lib/src/Tools.ts:638

Returns a function that gets property value from object

Type Parameters ​

• T

Parameters ​

k ​

string

Returns ​

Function

Parameters ​

x ​

Record<string, unknown>

Returns ​

T