I have an array of numbers:
var myArray:Array = [12345, 23456, 34567, 45678];
If I want to remove say, 34567 is there a clean efficient way to do it? I’m guessing I need to loop through the array, get the position of that value, then splice that position.
You could use
Array.indexOfto check on which index the value can be found in the array. If not found, it will be-1. In my example, I keep looping and removing until the index will be-1.