See splice. For understanding splice I really recommend reimplementing the pop, push, shift and unshift functions using only splice.
In reply to Re: An efficient way to remove an element from an array
by Corion
in thread An efficient way to remove an element from an array
by sophate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |