deep comparision(eloquent javascript)

In this example below you will see how to do a deep comparision(eloquent javascript) with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by 241188, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 241188 ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>deep comparision(eloquent javascript)</title>
  
  
  
  
  
</head>

<body>

  
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/241188/deep-comparisioneloquent-javascript-amwQPm */
function deepEqual(arg1,arg2) {
  if(arg1==null && arg2==null) return true;
  else if(arg1==null || arg2==null) return false;
 else if(typeof(arg1)==typeof(arg2)) 
    return arg1===arg2
    
  
  
  
}

Comments