Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active November 15, 2015 10:16
Show Gist options
  • Save KentarouKanno/8eac7905dd24ee611221 to your computer and use it in GitHub Desktop.
Save KentarouKanno/8eac7905dd24ee611221 to your computer and use it in GitHub Desktop.
let array: [String] = []
let array: Array<String> = []
let array = [String]()
if array.count != 0 {
// 配列が存在する時の処理
}
if !array.isEmpty {
// 配列が存在する時の処理
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment