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
Similar Kata:
Stats:
Created | Feb 5, 2014 |
Warriors Trained | 2336 |
Total Skips | 252 |
Total Code Submissions | 11750 |
Total Times Completed | 1100 |
JavaScript Completions | 1091 |
CoffeeScript Completions | 14 |
Total Stars | 26 |
% of votes with a positive feedback rating | 78% of 136 |
Total "Very Satisfied" Votes | 92 |
Total "Somewhat Satisfied" Votes | 29 |
Total "Not Satisfied" Votes | 15 |