Last active
July 26, 2020 15:59
-
-
Save sudomaxime/8948720c2712a80fbd7d51fdb90d6920 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
import * as vegetalLib from "some-weird-vegetal-lib"; | |
let eatables = ["banana", "apple", "watermelon", "tomato", "carrot", "cucumber", "lettuce", "kiwi", "orange"]; | |
function findWidelyAcceptedAsVegetable (eatables) { | |
return eatables.filter(eatable => vegetableLib.lexicalCheck(eatable) && vegetableLib.debatable(eatable) ? !vegetableLib.isTomato(eatable) : true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment