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

More By Author:

Check out these other kata created by user1496713

Stats:

CreatedJun 23, 2014
PublishedJun 23, 2014
Warriors Trained2298
Total Skips240
Total Code Submissions6322
Total Times Completed1475
JavaScript Completions1474
Total Stars16
% of votes with a positive feedback rating92% of 344
Total "Very Satisfied" Votes300
Total "Somewhat Satisfied" Votes34
Total "Not Satisfied" Votes9
Total Rank Assessments264
Average Assessed Rank
7 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user1496713 Avatar
  • JohanWiltink Avatar
  • adrian.eyre Avatar
  • SandQueen Avatar
  • MrKoyl Avatar
  • glovastefan Avatar
Ad