Retired

splicing (retired)

1,091 of 1,100xerxes

Description:

The object of this kata is to create a function called removeValue that removes all of a certain value from an array using .splice() and then returns the array.

Please note that Array.prototype.filter is also disabled.

If the array is empty or has no element to remove it should return false.

example:

    arr = [1, 2, 1, '1', 3]
    arr.removeValue(1); // returns [2, '1', 3]

For more information on .splice() visit http://www.w3schools.com/jsref/jsref_splice.asp .

Fundamentals
Arrays

Stats:

CreatedFeb 5, 2014
Warriors Trained2336
Total Skips252
Total Code Submissions11750
Total Times Completed1100
JavaScript Completions1091
CoffeeScript Completions14
Total Stars26
% of votes with a positive feedback rating78% of 136
Total "Very Satisfied" Votes92
Total "Somewhat Satisfied" Votes29
Total "Not Satisfied" Votes15
Ad
Contributors
  • xerxes Avatar
  • jhoffner Avatar
  • JoshSchreuder Avatar
  • WestwardLand968 Avatar
Ad