92
rated 0 times
[
98]
[
6]
/ answers: 1 / hits: 109748
/ 13 Years ago, mon, september 5, 2011, 12:00:00
I have an array like this
arr = [orange,red,black,white]
I want to augment the array object defining a deleteElem()
method which acts like this:
arr2 = arr.deleteElem(red); // [orange,black,white] (with no hole)
What is the best way to accomplish this task using just the value parameter (no index)?
More From » arrays