Created
April 5, 2020 22:55
-
-
Save coliveravenegas/7d5b7d95637afebef7596e530b5a99e7 to your computer and use it in GitHub Desktop.
This file contains 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
/* Haciendo unos ajustes tendriamos esto: */ | |
const checkHasFruit = (user, fruitName) => user.fruits.includes(fruitName); | |
const hasFruit = checkhasFruit(user, 'apple'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment