I offered 2 answers now, but I'm not sure which one is the "preferable" style...(in the sense of maintainability, stability, sideeffects, readability,...)
thats what splice() is for...
splice without splice()
what do you think is better?
In reply to "Good" style for splicing arrays by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |