Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

merge for hashes in rails

####################  Changes the original hash  ##################
h1.merge!(h2)
####################  returns a new hash  ##################
h1.merge(h2)
Source by apidock.com #
 
PREVIOUS NEXT
Tagged: #merge #hashes #rails
ADD COMMENT
Topic
Name
5+6 =