Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func returnProduct(productID: String) {
- products.append(productID)
- }
- func removeProduct(productID: String) {
- for i in 0 ..< products.count {
- if products[i].productID == productID {
- products.remove(at: i)
- break
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement