Skip to content

Documentation / base / objectKeys

Function: objectKeys()

objectKeys<T>(obj): keyof T[]

Defined in: libs/base/src/utils.ts:173

Object.keys with typed return value

Type Parameters

T

T extends object

Parameters

obj

T

The object to extract keys from.

Returns

keyof T[]

An array of keys from the object.

Released under the MIT License.