Created
          September 4, 2015 06:51 
        
      - 
      
 - 
        
Save tarzak/b316eacac5cf9cd45923 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function compareTwoObjects (objOne, objTwo) { | |
| var property | |
| , checker = true | |
| ; | |
| for (property in objTwo) { | |
| if (!objOne[property] || objTwo[property] !== objOne[property] ) { | |
| checker = false; | |
| return checker; | |
| } | |
| } | |
| return checker; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment