Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active January 28, 2020 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KentarouKanno/bd2ad00a6a19657f46630dc2521c96d9 to your computer and use it in GitHub Desktop.
Save KentarouKanno/bd2ad00a6a19657f46630dc2521c96d9 to your computer and use it in GitHub Desktop.
  • isnotEmpty
import Foundation

extension String {
    public var isNotEmpty: Bool {
        return !isEmpty
    }
}

extension Collection {
    public var isNotEmpty: Bool {
        return !isEmpty
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment