Created
June 20, 2020 17:28
-
-
Save duranmla/35ca2f55a439015f0955356f820d33fb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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