[swift4] How to Remove Specific Item from Array

How to Remove Specific Item from Array, is below code

for instance, remove B from A/B/C/D/E/F array


var strArray = ["A", "B", "C", "D", "E", "F"]
strArray.remove(at: strArray.index(of: "B")

by this code, remove “B” evenif B located third/forth item.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です