Create a function that checks to see if two object arguments are equal to one another. Return true if the objects are equal, otherwise, return false.
# The first object parameter.
obj_one = {
"name"=> "Mubashir",
"phone"=> "3325558745",
"email"=> "mubashir@edabit.com"
}
# The second object parameter.
obj_two = {
"name"=> "Jason",
"phone"=> "9853759720",
"email"=> "jason@edabit.com"
}
is_equal(obj_one, obj_two)
➞ false# The first object parameter.
obj_one = {
"name"=> "Jason",
"phone"=> "9853759720",
"email"=> "jason@edabit.com"
}
# The second object parameter.
obj_two = {
"name"=> "Jason",
"phone"=> "9853759720",
"email"=> "jason@edabit.com"
}
is_equal(obj_one, obj_two)
➞ trueIf you have a suggestion on how to make these instructions easier to understand, please leave a comment. Your feedback is greatly appreciated.