learn-co-curriculum / collections_practice_vol_2

More practice with iteration and nested data structures
Other
0 stars 5 forks source link

add more keys to make tests not passable without actually merging #29

Closed jd2rogers2 closed 5 years ago

jd2rogers2 commented 6 years ago

@sgharms for review (first time contributing, feedback welcome!) with old test data below can pass (notice arr1 not actually used) now merging will actually be necessary will submit update to solution branch and tag you as well

def merge_data(arr1, arr2)
  arr2[0].map do |name, prop_hash|
    prop_hash[:first_name] = name
    prop_hash
  end
end