Skip to content

Instantly share code, notes, and snippets.

@sudomaxime
Last active July 26, 2020 15:59
Show Gist options
  • Save sudomaxime/8948720c2712a80fbd7d51fdb90d6920 to your computer and use it in GitHub Desktop.
Save sudomaxime/8948720c2712a80fbd7d51fdb90d6920 to your computer and use it in GitHub Desktop.
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