It took me quite some time to realize that Object.keys()
return and Array of strings that correspond to the object keys. This is well documented (but you have to read carefully :)).
My question is: what are the (technical) reasons for the returned Array to be made of keys cast to a string? (and not the keys themselves)
In my case the keys were integers, so I had to re-cast what .keys()
returns through a .map()