@@ -0,0 +1,716 @@
+//only push obj onto arr if it has a unique phoneNumber%0Afunction uniquePush(arr, obj) %7B%0A  if (arr.length === 0) %7B%0A    arr.push(obj);%0A    return true;%0A  %7D else %7B%0A    for (var i = 0; i %3C arr.length; i++) %7B%0A      if (arr%5Bi%5D.phoneNumber === obj.phoneNumber %7C%7C obj.phoneNumber === undefined) %7B%0A        return false;%0A      %7D // if%0A    %7D // for%0A  %7D // else%0A  arr.push(obj);%0A  return true;%0A%7D // function%0A%0Avar nameArr = %5B%5D;%0A%0Avar bob = %7Bname:'bob', phoneNumber:1234%7D%0Avar joe = %7Bname:'joe', phoneNumber:12345%7D;%0Avar dupeJoe = %7Bname:'I am duped', phoneNumber:12345%7D;%0Avar badName = %7Bname:'bad'%7D%0A%0AuniquePush(nameArr, bob);%0AuniquePush(nameArr, joe);%0AuniquePush(nameArr, dupeJoe);%0AuniquePush(nameArr, badName);%0A%0Aconsole.log(nameArr);

add solution to uniquePush that was worked on previously