Hello, I'm stuck on something apparently very simple :
I have an array with only objects in it and I'd like to remove one of those objects by naming it
var array = [obj1, obj2, obj3, obj4]
array.remove(obj3) # > not working
remove() only works with integrals, not objects. So I have this error popping :
Invalid type in function 'remove' in base 'Array'. Cannot convert argument 1 from Object to int.
I could just write array.remove(3) but if I had removed obj2 before, for instance, then array.remove(3) would remove obj4 instead of obj3...
Is there another function I could use in this case ? :/
Thx !