JSFiddle - React, Tailwind, and code Playground

JavaScript

const nestedArray = [{id:"Degree",options:["HighSchool","Undergraduate","Bachelor","Master","Doctor"]},{id:"gender",options:["male", "female"]}]
const arrayOfObjects = []
nestedArray[0].options.map((degree)=>{
	nestedArray[1].options.map((gender)=>{
  let currObject={}
  currObject[nestedArray[0].id]=degree
  currObject[nestedArray[1].id]=gender
  	arrayOfObjects.push(currObject)
  })
})
console.log(arrayOfObjects)