Created
          January 8, 2016 12:50 
        
      - 
      
- 
        Save ahmedelgabri/8047e078d1d77599239a to your computer and use it in GitHub Desktop. 
    Simple check for the type of an object
  
        
  
    
      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 getType(target){ | |
| return Object.prototype.toString.call(target).slice(8, -1).toLowerCase(); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment