data = {1-inputWidth : '30px' , 1-inputHeight: '30px', 1-color : 'red',
2-inputWidth : '20px' , 2-inputHeight: '10px', 2-color : 'blue',
3-inputWidth : '60px' , 3-inputHeight: '70px', 3-color : 'white',
4-inputWidth : '90px' , 4-inputHeight: '10px', 4-color :'yellow',
scroll : 'auto', z-index : 1}
newData = {1: {1-inputWidth : '30px' , 1-inputHeight: '30px', 1-color : 'red'},
2: { 2-inputWidth : '20px' , 2-inputHeight: '10px', 2-color : 'blue'},
3: {3-inputWidth : '60px' , 3-inputHeight: '70px', 3-color : 'white'},
4: {4-inputWidth : '90px' , 4-inputHeight: '10px', 4-color :'yellow'}}
This object has keys starting with numbers and some that don't. I want to remove the non-numeric keys like scroll and z-index, and create a nested object using only the numeric keys from the original data. Can anyone help me figure this out? Thank you!