-
-
Save hayesch19/45a24d67f94a0f3ecd6d599c445034d0 to your computer and use it in GitHub Desktop.
Filter out the geese - Codewar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gooseFilter (birds) { | |
let geese = ["African", "Roman Tufted", "Toulouse", "Pilgrim", "Steinbacher"]; | |
let gooseFilter = birds.filter(function(birds) { | |
return geese.indexOf(birds) === -1 | |
}) | |
return gooseFilter | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment