Converts an object to either a string or array of its keys.
The object to get keys from.
The desired output format.
Converts an object to either a string or array of its keys.
Param: obj
The object to get keys from.
Param: output
The desired output format.