divides an object like { cities: [ 'Chicago', 'New York' ] } into [ { city: 'Chicago' }, { city: 'New York' } ]