Skip to main content

get

Retrieves the value of the specified property in the object.

Signature

get<T, K extends keyof T>(object: T, property: K): T[K]

Parameters

NameTypeOptionalDescription
objectTNoReference to the object.
propertyKNoName of the property.

Return value

Returns the value of the property.