7 kyu
Squeaky Clean
1,482 of 1,483user1496713
Description:
Write a solution to cleanup arrays. This can exist entirely in the squeakyClean function or contain multiple helper functions.
Your squeakyClean function should accept an input array of values and return a new array with all empty strings, 0, null and undefined removed.
Example:
var originalArray = ['click1','click2',null,'','','submitForm'];
the solution you write should return this:
var cleanedArray = ['click1', 'click2','submitForm']
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jun 23, 2014 |
Published | Jun 23, 2014 |
Warriors Trained | 2309 |
Total Skips | 240 |
Total Code Submissions | 6333 |
Total Times Completed | 1483 |
JavaScript Completions | 1482 |
Total Stars | 16 |
% of votes with a positive feedback rating | 92% of 348 |
Total "Very Satisfied" Votes | 303 |
Total "Somewhat Satisfied" Votes | 35 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 264 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |