Skip to content

Instantly share code, notes, and snippets.

@wmurch
Created May 15, 2019 19:48
Show Gist options
  • Save wmurch/03a6b0d3d9e7dc9380717806e7b52293 to your computer and use it in GitHub Desktop.
Save wmurch/03a6b0d3d9e7dc9380717806e7b52293 to your computer and use it in GitHub Desktop.
goose filter
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