Created
May 15, 2019 19:52
-
-
Save wmurch/f413b2873e6d88208ec616b211bdff93 to your computer and use it in GitHub Desktop.
check if x is in array a
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
function check(a,x){ | |
return (a.includes(x))? true : false | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment