How to trim all own (not inherited) property keys / names of an object? To trim the key name, not the property's value.
PS. Closest similar question I found is about trimming property values: javascript : trim all properties of an object
EDIT: This question was suggested as a possible duplicate. However, I'm explicitly needing to trim just the key name, not the value: Trim white spaces in both Object key and value recursively