Deviopath › Swift

Capitalized Words

Easy · Strings

capitalized title-cases each word. Extra spaces should collapse to one (split on whitespace, then join).

Write titleWords(_:).

Next: Rectangle Area