image2text

Untitled

Sep 17th, 2019
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. // if input is 'K ', 'W ', or ' ', call doSomething function
  2.  
  3. if (input === 'R ' || input === 'M ' || input === 'd& ') {
  4. doSomething()
  5.  
  6. I
  7.  
  8. // Shorthand
  9.  
  10. if (['R', 'MW, 'd& '].find(emoji => emoji === input)) {
  11. doSomething()
  12.  
  13. Iy
Advertisement
Add Comment
Please, Sign In to add comment