Created
April 5, 2020 22:54
-
-
Save coliveravenegas/be5a4284833b52931769f591719d6f84 to your computer and use it in GitHub Desktop.
booleanFunctions.js
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
const user = { | |
fruits: ['apple'] | |
} | |
const hasFruit = (user, fruitName) => user.fruits.includes(fruitName); | |
/*Si la funcion ya se llama "hasFruit" que nombre le pondriamos a "x"? */ | |
const x = hasFruit(user, 'apple'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment