Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Freaking Geese - Kata
function gooseFilter (birds) {
var geese = ["African", "Roman Tufted", "Toulouse", "Pilgrim", "Steinbacher"];
//birds array argument is filtered to check if the birds array includes a string that is in geese
//...if it isn't geese, return the string.
let filteredBirds = birds.filter(newBirds => {
return !geese.includes(newBirds)
})
console.log( filteredBirds)
return filteredBirds
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.