Skip to content

Instantly share code, notes, and snippets.

@duranmla
Created June 20, 2020 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duranmla/35ca2f55a439015f0955356f820d33fb to your computer and use it in GitHub Desktop.
Save duranmla/35ca2f55a439015f0955356f820d33fb to your computer and use it in GitHub Desktop.
const input = [pineapple, onion, lettuce, apple];
const main = (input) => {
const output = [];
// check if the element is a veggie
// if is veggie do not push into result
// else push into result return output;
}
console.log(main(input))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment