pathsMatchingExtensions(_:)
Returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array.
Declaration
func pathsMatchingExtensions(_ filterTypes: [String]) -> [String]Parameters
- filterTypes:
An array of
NSStringobjects containing filename extensions. The extensions should not include the dot (”.”) character.
Return Value
An array containing all the pathname elements in the receiving array that have filename extensions from the filterTypes array.