Checked rows in a table & updating nested array

How would I traverse rows in a table for checkboxes checked, then remove those checked items from the nested array within the document that helped populate the table I just traversed for checkboxes checked?

Document is an open order, the nested array is a collection of line item objects, so item-name, cost, open, etc., representing line items in an open order. I’m trying to say the item is no longer on order or it can be closed from the open order ticket.