There is an array of cities this.state.cities And there is an options object

How to write to the property of the city object an array of objects, where the values ​​will be the values ​​of the array this.state.cities

const options = { city: [{city: 'vjvv'}, {city: 'fehfehfehe'}, {city: 'fjfehufehfe'}], 

    1 answer 1

     this.state.cities.map(function(x) { return {city:x} }) } 

    Returns an array of objects with the specified structure.