Javascript Removing Elements From Array After Pulling

Javascript Removing Elements From Array After Pulling