returns the keys of an object as an array, with proper typing.
const obj = { a: 1, b: 2, c: 3 };const keys = keysOf(obj); // ['a', 'b', 'c'] Copy
const obj = { a: 1, b: 2, c: 3 };const keys = keysOf(obj); // ['a', 'b', 'c']
returns the keys of an object as an array, with proper typing.