Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| // Bonfire: Falsy Bouncer | |
| // Author: @duggiemitchell | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-falsy-bouncer | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| function bouncer(arr) { | |
| var falsyArr = []; | |
| var trueArr = arr.filter(Boolean); | |
| return (trueArr); |
| // Bonfire: Mutations | |
| // Author: @duggiemitchell | |
| // Challenge: http://www.freecodecamp.com/challenges/bonfire-mutations | |
| // Learn to Code at Free Code Camp (www.freecodecamp.com) | |
| //Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array. | |
| function mutation(arr) { | |
| var strOne = arr[0].toLowerCase(); | |
| var strTwo = arr[1].toLowerCase().split(""); | |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/