This is my object:
const small = {
'S': 'CS3',
'D': 'EB3',
'G': 'FS3',
'H': 'AB3',
'J': 'BB3',
'2': 'CS4',
'3': 'EB4',
'5': 'FS4',
'6': 'AB4',
'7': 'BB4'
}
I am trying to get an array of keys, IN THE ORIGINAL ORDER, and neither Object.keys(small)
nor (for const key in small)
work, it keeps reordering the array with the integers first. How can I get an array of these keys in this order?