hasPrefix(_:) Declarationfunc hasPrefix(_ prefix: String) -> Bool See AlsoFinding SubstringshasSuffix(_:)