function removeListItem(list, item) { const index = items.findIndex(test => test === item); items.splice(index, 1); }