Created
May 15, 2019 19:48
-
-
Save wmurch/03a6b0d3d9e7dc9380717806e7b52293 to your computer and use it in GitHub Desktop.
goose filter
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) { | |
var geese = ["African", "Roman Tufted", "Toulouse", "Pilgrim", "Steinbacher"]; | |
return birds.filter(bird => !geese.includes(bird)) | |
// return an array containing all of the strings in the input array except those that match strings in geese | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment