7 kyu
Squeaky Clean
1,474 of 1,475user1496713
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 | 2298 |
Total Skips | 240 |
Total Code Submissions | 6322 |
Total Times Completed | 1475 |
JavaScript Completions | 1474 |
Total Stars | 16 |
% of votes with a positive feedback rating | 92% of 344 |
Total "Very Satisfied" Votes | 300 |
Total "Somewhat Satisfied" Votes | 34 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 264 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |