18 lines
324 B
Swift
18 lines
324 B
Swift
/**
|
|
* Splash
|
|
* Copyright (c) John Sundell 2018
|
|
* MIT license - see LICENSE.md
|
|
*/
|
|
|
|
import Foundation
|
|
|
|
extension Equatable {
|
|
func isAny(of candidates: Self...) -> Bool {
|
|
return candidates.contains(self)
|
|
}
|
|
|
|
func isAny(of candidates: [Self]) -> Bool {
|
|
return candidates.contains(self)
|
|
}
|
|
}
|