MCPcopy Create free account
hub / github.com/antfu/utils / objectKeys

Function objectKeys

src/object.ts:58–60  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

56 * @category Object
57 */
58export function objectKeys<T extends object>(obj: T) {
59 return Object.keys(obj) as Array<`${keyof T & (string | number | boolean | null | undefined)}`>
60}
61
62/**
63 * Strict typed `Object.entries`

Callers 2

deepMergeFunction · 0.85
deepMergeWithArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected