Skip to content

Function: objKeys()

objKeys<T, Include>(obj, sorted, includeSymbols): Include extends true ? keyof T[] : keyof T[] & string[]

Defined in: packages/core/src/obj/objKeys.ts:10

Get object property names/keys

Type Parameters

T

T extends object

Include

Include extends boolean = true

Parameters

obj

T

target object

sorted

boolean = true

(optional) Whether to sort the keys. Default: true

includeSymbols

Include = ...

(optional) Whether to include Symbol object. Default: false

Returns

Include extends true ? keyof T[] : keyof T[] & string[]