Returns an array of the object's keys with the correct type.
Example
constdestinations: Record<FormField, string> = { email:'email', phoneNumber:'phoneNumber' }; constkeys = objectKeys(destinations); // type of Keys is FormField[] instead of string[] (which is the default type of Object.keys)
Description
Returns an array of the object's keys with the correct type.
Example