const screens = { "768": "large", "200": "small" } const keys = Object.keys(screens).map(key => parseInt(key)) // OR Number(key) console.log(keys) // Output [200, 768]
const screens = { "768": "large", "200": "small" } const keys = Object.keys(screens).map(key => parseInt(key)) // OR Number(key) console.log(keys) // Output [200, 768]