Check If objOne Is Equal to objTwo

Published by Pickle in

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.

Example #1

// The first object parameter.

{
  name: "Benny",
  phone: "3325558745",
  email: "benny@edabit.com"
}

// The second object parameter.

{
  name: "Jason",
  phone: "9853759720",
  email: "jason@edabit.com"
}


➞ false

Example #2

// The first object parameter.

{
  name: "Jason",
  phone: "9853759720",
  email: "jason@edabit.com"
}

// The second object parameter.

{
  name: "Jason",
  phone: "9853759720",
  email: "jason@edabit.com"
}


➞ true

Notes

If you have a suggestion on how to make these instructions easier to understand, please leave a comment. Your feedback is greatly appreciated.

Watch a quick demo on how Edabit works.