min(ofProperty:)
func min<T: MinMaxType>(ofProperty property: String) -> T?
Returns the minimum (lowest) value of the given property among all the objects in the collection, or nil if the
collection is empty.
Warning
Only a property whose type conforms to the MinMaxType protocol can be specified.
-
Declaration
Swift
func min<T: MinMaxType>(ofProperty property: String) -> T?
View on GitHub
Install in Dash
min(ofProperty:) Instance Method Reference