Remove selected value from existing array
Closed this issue · 2 comments
gusreyes01 commented
I'm using the same array to create multiple machines.
How can I achieve the following?
Machine 1 = [1,2,3] (Result is 3, remove it)
Machine 2 = [1,2] (Result is 2, remove it)
Machine 3 = [1]
Right now machine.active
gives me the selected index but I have no way to associate this number to my existing array.
josex2r commented
why not?
If you have the index and the array you can get the selected element.
gusreyes01 commented
@josex2r thanks jose, I ended up doing just that.