generic extensions
Here’s the code if you want to experiment with it:
import Foundation
extension String? {
var orEmpty: String {
self ?? ""
}
}
Here’s the code if you want to experiment with it:
import Foundation
extension String? {
var orEmpty: String {
self ?? ""
}
}