Skip to content

Instantly share code, notes, and snippets.

View duggiemitchell's full-sized avatar
🏠
Working from home

Erica Edge duggiemitchell

🏠
Working from home
View GitHub Profile
// 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);
@duggiemitchell
duggiemitchell / freecodecamp-bonfire-mutations.js
Last active January 5, 2016 18:43
Traversing Array to strings using indexOf()
// 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("");
@duggiemitchell
duggiemitchell / README.md
Created November 9, 2015 20:18 — forked from hofmannsven/README.md
My simply Git Cheatsheet