Returns the keys of an object as a strongly-typed array of keys.
The object whose keys are to be extracted.
An array of keys of the given object, typed as the keys of the object.
const person = { name: "Alice", age: 30 };const keys = objectKeys(person); // Type: ['name', 'age'] Copy
const person = { name: "Alice", age: 30 };const keys = objectKeys(person); // Type: ['name', 'age']
Returns the keys of an object as a strongly-typed array of keys.