In my case the keys were integers
They were not.
Object property names can only be strings or Symbols (ECMAScript, mdn).
The numbers (JS doesn’t have an integer data type) were converted to strings when the property was created, not when the property names were read.
solved Why does Object.keys() return an Array of strings? [duplicate]