My array: var savedDataArray: Array<String>? = NSUserDefaults.standardUserDefaults().objectForKey("savedDataArray") as? Array<String>
console prints Optional(["75500.0", "2.19351e+08"])
I do not want the word "optional" or the braces
Force unwrapping var savedDataArray Array<String>!
stops the word "optional" appearing however my array may be nil
so dont I dont want to do this ( and the braces are still present)
This is not the same as the following answers as they all suggest foce unwrapping
Printing value of a optional variable includes the word "Optional" in Swift
How to print a string from plist without “Optional”?
Swift giving Optional(3) instead of 3 for .toInt