mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
4d6e63e880
* Adds uncluttering dumped YAML manifest from `nil` entries. * Uses required type of a dictionary * Update CHANGELOG.md Co-authored-by: Maciej Piotrowski <maciej.piotrowski@allegro.pl>
10 lines
298 B
Swift
10 lines
298 B
Swift
extension Array where Element == [String: Any?] {
|
|
func removingEmptyArraysDictionariesAndNils() -> [[String: Any]] {
|
|
var new: [[String: Any]] = []
|
|
forEach { element in
|
|
new.append(element.removingEmptyArraysDictionariesAndNils())
|
|
}
|
|
return new
|
|
}
|
|
}
|