Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // if input is 'K ', 'W ', or ' ', call doSomething function
- if (input === 'R ' || input === 'M ' || input === 'd& ') {
- doSomething()
- I
- // Shorthand
- if (['R', 'MW, 'd& '].find(emoji => emoji === input)) {
- doSomething()
- Iy
Advertisement
Add Comment
Please, Sign In to add comment