I want to create an array for my app's dropdown list for age selection. However I dont want to type all ages from 10 till 80. I can create an array with for loop and push methods but I couldn't create format for dropdown list.
You can find below array format below.
const ageData = [{ value: 10 }, { value: 11 }, { value: 12 }];