Const
Typed version of Object.keys().
The object whose enumerable own property names are to be returned.
An array of the given object's own enumerable property names.
const obj = { a: 1, b: 2, c: 3 }const keys = typedKeys(obj) // type: ('a' | 'b' | 'c')[]console.log(keys) // ['a', 'b', 'c'] Copy
const obj = { a: 1, b: 2, c: 3 }const keys = typedKeys(obj) // type: ('a' | 'b' | 'c')[]console.log(keys) // ['a', 'b', 'c']
Typed version of Object.keys().