Link Search Menu Expand Document

Table of contents


prop (function)

Same as R.prop

Signature

export function prop<K extends string>(k: K): <T extends Record<K, any>>(obj: T) => T[K];
export function prop<K extends keyof T, T extends object>(k: K, obj: T): T[K]; { ... }

Added in v0.1.4