Last active
          January 17, 2020 17:11 
        
      - 
      
- 
        Save meekg33k/82c795d98ab87f422030ba72f4b08b3b to your computer and use it in GitHub Desktop. 
    A utility function to check if an object is present
  
        
  
    
      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
    
  
  
    
  | const isPresentSomeObject = (arg: SomeObjectType | undefined): boolean => { | |
| if (arg && Object.keys(arg).length > 0) { | |
| return true; | |
| } | |
| return false; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment