// Copyright 2014 Sandeep Appikonda

function superAdd(firstArg, secondArg){
   
   
   if (typeof(firstArg) === "number")
   {
   	  return firstArg + secondArg;
   }
   else if(typeof(firstArg) === "string")
   {
   	  return firstArg +" "+ secondArg;
   }
   else if( Array.isArray(firstArg) ){
   	 return  firstArg.concat(secondArg);
   }
   else
   {
   	  return addObjects(firstArg,secondArg);
   }

} 

// This function will add two objects and returns the result object

function addObjects(firstObject, secondObject){
	var resultObject = {};
	
	for (var key in firstObject) {
		resultObject[key] = firstObject[key]
	}
	for (var key in secondObject) {
		resultObject[key] = secondObject[key]
	}

	return resultObject;
}

function addObjects(firstObject, secondObject){
	var resultObject = {};
	
	for (var key in firstObject) {
		resultObject[key] = firstObject[key]
	}
	for (var key in secondObject) {
		resultObject[key] = secondObject[key]
	}

	return resultObject;
}
@@ -5,16 +5,20 @@
 opyright
+ (c)
  2014 Sa
@@ -61,19 +61,16 @@
 irst
-Arg
 , second
 Arg)
@@ -69,21 +69,11 @@
 cond
-Arg)%7B%0A   %0A   
+) %7B
 %0A   
@@ -78,34 +78,30 @@
   if (typeof
-(
+ 
 first
-Arg)
  === %22number
@@ -102,26 +102,23 @@
 number%22)
-%0A  
  %7B%0A   
-%09
+ 
   return
@@ -123,19 +123,16 @@
 rn first
-Arg
  + secon
@@ -128,36 +128,30 @@
 rst + second
-Arg
 ;%0A   %7D
-%0A  
  else if(typ
@@ -153,26 +153,22 @@
 f(typeof
-(
+ 
 first
-Arg)
  === %22st
@@ -173,26 +173,23 @@
 string%22)
-%0A  
  %7B%0A   
-%09
+ 
   return
@@ -198,24 +198,23 @@
 irst
-Arg
  +
+ 
 %22 %22
+ 
 + second
 Arg;
@@ -213,20 +213,14 @@
 cond
-Arg
 ;%0A   %7D
-%0A  
  els
@@ -224,17 +224,16 @@
 else if(
- 
 Array.is
@@ -247,28 +247,26 @@
 irst
-Arg
+)
 ) 
-)
 %7B%0A   
-%09
+  
  return 
  fir
@@ -265,17 +265,13 @@
 urn 
- 
 first
-Arg
 .con
@@ -284,36 +284,27 @@
 cond
-Arg
 );%0A   %7D
-%0A  
  else
-%0A  
  %7B%0A   
-%09
+ 
   re
@@ -328,29 +328,24 @@
 irst
-Arg
 ,
+ 
 second
-Arg
 );%0A   %7D%0A
 %0A%7D %0A
@@ -344,80 +344,9 @@
   %7D%0A
-%0A
 %7D
- %0A%0A// This function will add two objects and returns the result object
 %0A%0Afu
@@ -381,35 +381,37 @@
 t, secondObject)
+ 
 %7B%0A
-%09
+  
 var resultObject
@@ -421,294 +421,46 @@
 %7B%7D;%0A
-%09%0A%09for (var key in firstObject) %7B%0A%09%09resultObject%5Bkey%5D = firstObject%5Bkey%5D%0A%09%7D%0A%09for (var key in secondObject) %7B%0A%09%09resultObject%5Bkey%5D = secondObject%5Bkey%5D%0A%09%7D%0A%0A%09return resultObject;%0A%7D%0A%0Afunction addObjects(firstObject, secondObject)%7B%0A%09var resultObject = %7B%7D;%0A%09%0A%09for (var key in firstObject) %7B%0A%09%09
+%0A  for (var key in firstObject) %7B%0A    
 resu
@@ -496,12 +496,15 @@
 ey%5D%0A
-%09%7D%0A%09
+  %7D%0A%0A  
 for 
@@ -535,10 +535,12 @@
 ) %7B%0A
-%09%09
+    
 resu
@@ -577,13 +577,15 @@
 ey%5D%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 retu
@@ -602,8 +602,9 @@
 bject;%0A%7D
+%0A

indent code and remove redundant code