Last active
          May 24, 2017 06:35 
        
      - 
      
 - 
        
Save Alexander-Ignition/bbef2154b9aa3a8faace93b541c4837d 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
    
  
  
    
  | extension Optional where Wrapped == String { | |
| var isEmpty: Bool { return map { $0.isEmpty } ?? true } | |
| } | |
| extension Optional where Wrapped == Collection { | |
| var isEmpty: Bool { return map { $0.isEmpty } ?? true } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment