allSatisfy in iOS Swift

allSatisfy() method allows us to check if all the elements of a collection satisfy a specific condition.

--

--