Last active
March 19, 2018 09:55
-
-
Save kanghyojun/da8e686a32fe549bd4dea595b7ade3c8 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
const wrongCond = 1 in [0, 2, 3]; // true | |
const rightCond = [0, 2, 3].indexOf(1) !== -1; // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment